Skip to content

Commit 32ebaae

Browse files
committed
chore: test
1 parent 16751e8 commit 32ebaae

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)