-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbump.sh
More file actions
executable file
·25 lines (18 loc) · 851 Bytes
/
Copy pathbump.sh
File metadata and controls
executable file
·25 lines (18 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -euo pipefail
# the reason we require a manual version is because we lerna doesn't respect pre 1.0
# version bumps, so any minor change will cause the "Y" component (in X.Y.Z) to be bumped
# and in pre-1.0 this is considered a major version bump.
ver=${1:-}
if [ -z "${ver}" ]; then
echo "usage: ./bump.sh <version>"
exit 1
fi
/bin/bash ./install.sh
node_modules/.bin/lerna publish --force-publish=* --skip-npm --skip-git --conventional-commits --repo-version ${ver}
# update all "peerDependencies" sections in package.json files
# to match their corresponding "dependencies" version requirement
find . -name package.json | grep -v node_modules | xargs node scripts/sync-peer-deps.js
node_modules/.bin/lerna run build --stream --sort
# update test expectations
UPDATE_DIFF=1 node_modules/.bin/lerna run test --stream --sort