Skip to content

Commit

Permalink
[skip ci] Update version script.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsonvu committed Aug 31, 2024
1 parent 1c96911 commit 3d6fd12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Bump version
run: pnpm run version ${{ inputs.version }}
run: |
pnpm run version ${{ inputs.version }}
git push origin --tags --force
- name: Create PR with new versions
uses: peter-evans/create-pull-request@v6
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ await new Promise((resolve, reject) => {
// it's not ideal to create and push a tag at the time the PR is created, but once the PR is
// merged main should contain the tag as if it were created there.
exec(
`git commit --all --message="v${newVersion}"; git tag "v${newVersion}"; git push origin --force "v${newVersion}"`,
`git commit --all --message="v${newVersion}" && git tag "v${newVersion}"`,
(error, stdout, stderr) => {
if (error) {
reject(error);
Expand Down

0 comments on commit 3d6fd12

Please sign in to comment.