Skip to content

Commit

Permalink
chore(release): publish alpha, beta and rc versions with next
Browse files Browse the repository at this point in the history
… tag on npmjs.org
  • Loading branch information
SuperITMan committed Sep 20, 2024
1 parent be92516 commit d6377c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions release-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ ghActionsGroupStart "publishing: ${PACKAGE}" "no-xtrace"
for file in ${TGZ_FILES}; do
logInfo "Publishing TGZ file: ${TGZ_FILES}" 2
if [[ ${DRY_RUN} == false ]]; then
logTrace "Publishing the release (with tag latest)" 2
npm publish ${file} --access public
if [[ ${GITHUB_REF} =~ /(alpha|beta|rc)/ ]]; then
logTrace "Publishing the release (with tag next)" 2
npm publish ${file} --tag next --access public
else
logTrace "Publishing the release (with tag latest)" 2
npm publish ${file} --access public
fi
else
logTrace "DRY RUN, skipping npm publish!" 2
fi
Expand Down

0 comments on commit d6377c0

Please sign in to comment.