Skip to content

Commit

Permalink
fix: 🚀 update release script after lerna version change (#2235)
Browse files Browse the repository at this point in the history
* fix: 🚀 update release script after lerna version change

* remove --stream from cdn-upload command

* remove scope from build script

* remove bootstrap from pr diff bot (main no longer requires bootstrap command)
  • Loading branch information
gingerbenw authored Oct 23, 2024
1 parent aee8dbe commit 365d63c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pr-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
run: |
mkdir .diff
npm ci
npx lerna bootstrap
npm run build
cat packages/browser/dist/bugsnag.min.js | wc -c > .diff/size-before-minified
cat packages/browser/dist/bugsnag.min.js | gzip | wc -c > .diff/size-before-gzipped
Expand Down
14 changes: 3 additions & 11 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,7 @@ if [ -z "${RETRY_PUBLISH:-}" ]; then
fi

# build packages
npx lerna run build \
--scope @bugsnag/node \
--scope @bugsnag/browser

npx lerna run build \
--ignore @bugsnag/node\
--ignore @bugsnag/browser \
--ignore @bugsnag/plugin-electron-app \
--ignore @bugsnag/plugin-electron-client-state-persistence
npx lerna run build

# push local changes and tags
git push origin --follow-tags
Expand All @@ -57,9 +49,9 @@ else
fi

if [ "$BROWSER_PACKAGE_CHANGED" -eq 1 ] || [ -v FORCE_CDN_UPLOAD ]; then
npx lerna run cdn-upload --stream --scope @bugsnag/browser
npx lerna run cdn-upload --scope @bugsnag/browser
fi

if [ "$WORKER_PACKAGE_CHANGED" -eq 1 ] || [ -v FORCE_CDN_UPLOAD ]; then
npx lerna run cdn-upload --stream --scope @bugsnag/web-worker
npx lerna run cdn-upload --scope @bugsnag/web-worker
fi
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"xvfb-maybe": "^0.2.1"
},
"scripts": {
"build": "lerna run build --scope '@bugsnag/node' --scope '@bugsnag/browser' && lerna run build --ignore '@bugsnag/node' --ignore '@bugsnag/browser'",
"build": "lerna run build",
"build:electron": "lerna run build --scope '@bugsnag/plugin-electron-ipc' --scope '@bugsnag/plugin-electron-app' --scope '@bugsnag/plugin-electron-client-state-persistence'",
"test:lint": "eslint --ext .ts,.js --report-unused-disable-directives --max-warnings=0 .",
"test:lint-native": "bash scripts/cppcheck.sh",
Expand Down

0 comments on commit 365d63c

Please sign in to comment.