Skip to content

Commit d0f73e6

Browse files
committed
ci: setup bot user for creating release commit
1 parent 778db14 commit d0f73e6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,20 @@ jobs:
4141
- name: Build the project
4242
run: pnpm run build
4343

44+
- name: Set up Git user
45+
run: |
46+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
47+
git config --global user.name "github-actions[bot]"
48+
4449
- name: Bump version
4550
id: versioning
4651
run: |
47-
pnpm version ${{ github.event.inputs.strategy }}
52+
npm version ${{ github.event.inputs.strategy }}
4853
VERSION=$(node -p "require('./package.json').version")
4954
echo "current-version=$VERSION" >> $GITHUB_OUTPUT
5055
5156
- name: Commit and tag release
5257
run: |
53-
git config user.name github-actions[bot]
54-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
5558
git add .
5659
git commit -m "chore(release): v${{ steps.versioning.outputs.current-version }}"
5760
git tag v${{ steps.versioning.outputs.current-version }}
@@ -90,4 +93,3 @@ jobs:
9093
run: npm publish --access public
9194
env:
9295
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
93-

0 commit comments

Comments
 (0)