Skip to content

Commit

Permalink
Added step to update run number to add pre-***
Browse files Browse the repository at this point in the history
  • Loading branch information
Amos Laboso committed Jan 28, 2025
1 parent d929973 commit 2ac725c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ jobs:
echo "Bumping patch version for main branch..."
git pull origin main
yarn plugin import version
yarn version patch
NEW_VERSION=$(node -p "require('./package.json').version")
yarn version patch
NEW_VERSION=$(node -p "require('./package.json').version")-pre.${{ github.run_number }}
echo "Version bumped to: $NEW_VERSION"
yarn version $NEW_VERSION
git push origin main --tags
echo "Publishing patch release to NPM..."
yarn config set npmAuthToken "${NODE_AUTH_TOKEN}"
Expand Down

0 comments on commit 2ac725c

Please sign in to comment.