Skip to content

Commit

Permalink
chore: update canary release script, fix numbering (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Dec 12, 2024
1 parent d34903f commit f5e0a9d
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 217 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn clean
- run: yarn build:packages
- run: npm run publish-release -- canary
- run: npx --yes -w packages [email protected] release prerelease --prerelease canary --provenance --log-level verbose
if: ${{ github.ref == 'refs/heads/main' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
7 changes: 0 additions & 7 deletions lerna.json

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
"build:packages": "turbo run build --filter '!./examples/*'",
"build": "turbo run build",
"i18n": "turbo run i18n",
"prepare": "husky install",
"publish-release": "npm run publish-release -w packages --"
"prepare": "husky install"
},
"resolutions": {
"playwright": "1.45.3"
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-active-viewer-count/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'"
},
"devDependencies": {
"@open-wc/testing": "^4.0.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-audio-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"build:esm": "esbuild src/index.tsx --target=es2019 --bundle --sourcemap --metafile=./dist/esm.json --format=esm --outdir=dist --out-extension:.js=.mjs --external:react --external:prop-types --external:@mux/* --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'"
},
"dependencies": {
"@mux/playback-core": "0.27.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-elements-codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"dev": "npm-run-all --parallel dev:types dev:esm",
"build:esm": "esbuild src/index.ts --target=es2019 --format=esm --outdir=dist --out-extension:.js=.mjs",
"build:types": "tsc",
"build": "npm-run-all --parallel build:esm",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel build:esm"
},
"dependencies": {
"chalk": "^5.0.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-player-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@
"build:esm:lazy": "esbuild src/lazy.tsx --splitting --target=es2019 --bundle --sourcemap --metafile=./dist/esm.lazy.json --format=esm --loader:.css=text --outdir=dist --out-extension:.js=.mjs --external:react --external:@mux/* --external:prop-types --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify' 'build:esm:lazy --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify' 'build:esm:lazy --minify'"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify' 'build:themes'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify' 'build:themes'"
},
"dependencies": {
"@mux/mux-video": "0.22.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-uploader-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
"build:esm": "esbuild src/index.tsx --target=es2019 --minify --bundle --sourcemap --metafile=./dist/esm.json --format=esm --loader:.css=text --outdir=dist --out-extension:.js=.mjs --external:react --external:prop-types",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-uploader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'"
},
"dependencies": {
"@mux/upchunk": "^3.4.0"
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-video-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"build:esm": "esbuild src/index.tsx --target=es2019 --bundle --sourcemap --metafile=./dist/esm.json --format=esm --outdir=dist --out-extension:.js=.mjs --external:react --external:prop-types --external:@mux/* --define:PLAYER_VERSION=\"'$npm_package_version'\"",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:cjs --minify' 'build:esm --minify'"
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^17.0.0-0 || ^18 || ^18.0.0-0 || ^19 || ^19.0.0-0",
Expand Down
3 changes: 1 addition & 2 deletions packages/mux-video/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
"copypolyfills": "shx mkdir -p src/polyfills && shx cp ../../shared/polyfills/index.ts ./src/polyfills/index.ts",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'"
},
"dependencies": {
"@mux/playback-core": "0.27.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/playback-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@
"prebuild:types": "shx mkdir -p ./dist/types",
"build:types": "tsc",
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4 --to=3.4",
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'",
"publish-release": "../../scripts/publish.sh"
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify'"
},
"dependencies": {
"hls.js": "~1.5.11",
Expand Down
185 changes: 0 additions & 185 deletions scripts/publish.sh

This file was deleted.

0 comments on commit f5e0a9d

Please sign in to comment.