Skip to content

Commit

Permalink
Update increment_version.yaml (#23)
Browse files Browse the repository at this point in the history
push to separate branch and create PR
  • Loading branch information
nutrina authored Feb 26, 2025
1 parent 9c81bf7 commit a675d6a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/increment_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- minor
- patch
jobs:
run-tests:
increment-version:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,11 +23,18 @@ jobs:
with:
node-version: 22.14.0
cache: "yarn"

- name: Increment package version
run: |
git log
git config user.name 'GHA Workflow'
git config user.email '-'
npm version ${{ github.event.inputs.version-increment-type }}
git log
git push --follow-tags
git push --follow-tags --force origin package-version-update
- name: Create Pull Request
run: |
gh pr create --base main --head package-version-update --title "Update package version" --body "This PR was created automatically."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a675d6a

Please sign in to comment.