Skip to content

Commit

Permalink
prevent dist-tag latest in rc releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl committed Apr 15, 2024
1 parent 3d07264 commit 340e557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion container/public/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"micro-frontends",
"microfrontends"
],
"version": "1.2.0-rc2"
"version": "1.2.0-rc3"
}
2 changes: 1 addition & 1 deletion scripts/npmPublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function publishPackage {

npm publish $BASE_DIR/../$PUBLISH_FOLDER --access public
npm dist-tag add $NAME@$VERSION next
if [[ $VERSION != *"rc."* ]] && [[ $VERSION != *"next."* ]]; then
if [[ $VERSION != *"rc"* ]] && [[ $VERSION != *"next."* ]]; then
echo "Tag $NAME@$VERSION with latest and next on npm"
npm dist-tag add $NAME@$VERSION latest
else
Expand Down

0 comments on commit 340e557

Please sign in to comment.