diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 2a21aad..3d4a735 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -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 diff --git a/scripts/version.js b/scripts/version.js index 49529bd..2a9af5f 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -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);