Skip to content

Commit

Permalink
Merge pull request #112 from radiovisual/auto-version-bump-pr
Browse files Browse the repository at this point in the history
ci: open a PR with version bump after successful publish.
  • Loading branch information
radiovisual authored Feb 18, 2024
2 parents bbf3e17 + 45ec7f3 commit 0f82588
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Michael Wuergler"
Expand All @@ -21,3 +21,15 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# This step will only run if all previous steps have succeeded
- name: Create Pull Request for Version Bump
if: success()
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update package version
title: 'chore: update package version to ${{ env.RELEASE_VERSION }}'
body: 'Updates `package.json` version to `${{ env.RELEASE_VERSION }}`.'
branch: version-bump/${{ env.RELEASE_VERSION }}
labels: version-bump
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0f82588

Please sign in to comment.