Skip to content

Commit

Permalink
Commit the version bump before release
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanPB committed Jan 5, 2022
1 parent 8d006f3 commit 12ef4ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn version --new-version "$NEXT_VERSION" --no-git-tag-version
- run: yarn release

- name: Commit version bump
uses: EndBug/add-and-commit@v7
with:
add: ./package.json
message: ${{ format('[CI] Bump version to {0}', github.ref_name) }}
branch: main

- run: yarn release

0 comments on commit 12ef4ce

Please sign in to comment.