@@ -52,16 +52,36 @@ jobs:
5252 fi
5353 echo "resolved=$RELEASE_VERSION" >> "$GITHUB_OUTPUT"
5454
55- - name : Bump versions and commit
55+ - name : Bump versions (no push)
5656 env :
5757 INPUT_VERSION : ${{ steps.resolve_version.outputs.resolved }}
5858 run : |
59- git config user.name "github-actions[bot]"
60- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
6159 node ./scripts/release/version.js "$INPUT_VERSION"
6260 RESOLVED_VERSION=$(jq -r .version package.json)
63- git commit -am "chore: release v$RESOLVED_VERSION"
64- git push origin HEAD
61+ echo "RESOLVED_VERSION=$RESOLVED_VERSION" >> "$GITHUB_ENV"
62+
63+ - name : Set git identity (Actions bot)
64+ run : |
65+ git config user.name "github-actions[bot]"
66+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
67+
68+ - name : Commit & push with PAT
69+ uses : actions-js/push@v1.4
70+ with :
71+ github_token : ${{ secrets.WORKFLOW_PAT }}
72+ branch : ${{ github.ref_name }}
73+ message : ' chore: release v${{ env.RESOLVED_VERSION }}'
74+
75+ # - name: Bump versions and commit
76+ # env:
77+ # INPUT_VERSION: ${{ steps.resolve_version.outputs.resolved }}
78+ # run: |
79+ # git config user.name "github-actions[bot]"
80+ # git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
81+ # node ./scripts/release/version.js "$INPUT_VERSION"
82+ # RESOLVED_VERSION=$(jq -r .version package.json)
83+ # git commit -am "chore: release v$RESOLVED_VERSION"
84+ # git push origin HEAD
6585
6686 # - name: Build
6787 # run: yarn build
0 commit comments