Skip to content

Commit

Permalink
ci: automate patch releases and npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Jan 28, 2025
1 parent 17bcd77 commit a06b6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
echo "Bumping patch version for main branch..."
git pull origin main
yarn plugin import version
yarn version patch -d -m "chore: bump version to %s [skip ci]"
yarn version patch
echo "Version bumped to: $(node -p \"require('./package.json').version\")"
git push --follow-tags
git push origin main --tags
echo "Publishing patch release to NPM..."
yarn config set npmAuthToken "${NODE_AUTH_TOKEN}"
yarn npm publish --access public
Expand Down

0 comments on commit a06b6ad

Please sign in to comment.