Skip to content

Commit

Permalink
Fix release tag calculation (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Sep 29, 2022
1 parent d00097b commit 7e89403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
# print the NPM user name for validation
npm whoami
VERSION=$(npm -s run env echo '$npm_package_version')
VERSION=$(node -p "require('./package.json').version" )
# Only publish stable versions to the latest tag
if [[ "$VERSION" =~ ^[^-]+$ ]]; then
NPM_TAG="latest"
Expand Down

0 comments on commit 7e89403

Please sign in to comment.