Skip to content

Commit 5bd56bc

Browse files
chore: Refactor release script to use lerna publish (#259)
1 parent 373fe5d commit 5bd56bc

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

scripts/ci/release.sh

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,15 @@ yarn install --mutex network
1616
# run tests
1717
yarn test
1818

19-
# trigger lerna release and create new storybook
20-
./node_modules/.bin/lerna version --conventional-graduate
21-
22-
# These steps are only required in case we don't a user with admin privileges
23-
# get the new version number
24-
#RELEASE_VERSION=$(node -p "require('./lerna.json').version")
25-
# get the new version number
26-
#git checkout -b releases/${RELEASE_VERSION}
27-
#git push --set-upstream origin releases/${RELEASE_VERSION}
28-
2919
# build the project with the new version after lerna version
3020
yarn build
31-
# reset potential changes in sizes
32-
git checkout scripts/rollup/results.json
33-
34-
# if we came to that point we are ready for publish
3521

3622
# create npmrc with auth
3723
bash ${WORKSPACE}/scripts/ci/setup-npm.sh
3824

39-
# now start publishing each package
40-
cd ${WORKSPACE}/build/node_modules/charts && npm publish --access public
41-
cd ${WORKSPACE}/build/node_modules/main && npm publish --access public
42-
cd ${WORKSPACE}/build/node_modules/base && npm publish --access public
43-
25+
# trigger lerna release and create new storybook
26+
${WORKSPACE}/node_modules/.bin/lerna publish --conventional-graduate \
27+
--create-release github
4428

4529
# all packages are now released, clear npm-session
4630
rm ~/.npmrc

0 commit comments

Comments
 (0)