Skip to content

Commit 23b9e77

Browse files
committed
chore: 🤖 release rc versions as next tag in npm registry
1 parent bd1166a commit 23b9e77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- if: tag =~ ^v # Run only for tags
2323
stage: "deploy"
2424
script:
25+
- if [[ "$TRAVIS_TAG" =~ "rc" ]] ; then export DIST_TAG="next" ; fi
2526
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
2627
- npm run release:publish
2728
skip_cleanup: true

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"release:graduate": "npm run release -- --conventional-graduate",
3636
"release:next": "npm run release -- prerelease",
3737
"release:next:init": "lerna version premajor --force-publish",
38-
"release:publish": "lerna publish from-package --yes",
38+
"release:publish": "lerna publish from-package --yes --dist-tag ${DIST_TAG:-latest}",
3939
"stylelint": "turbo run stylelint",
4040
"test": "turbo run test",
4141
"version": "npm run doc && node utils/version/create-ima-app-versions.js && git add docs packages/create-ima-app/template/package.json"

0 commit comments

Comments
 (0)