Skip to content

Commit 1cf6c4d

Browse files
committed
add commit signing in release action [no ci]
1 parent 9239c30 commit 1cf6c4d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ jobs:
2626
packageManager: pnpm
2727
packageManagerVersion: 9
2828

29+
- name: Import bot's GPG key for signing commits
30+
id: import-gpg
31+
uses: crazy-max/ghaction-import-gpg@v4
32+
with:
33+
gpg_private_key: ${{ secrets.PINAX_BOT_PGP_PRIVATE_KEY }}
34+
passphrase: ${{ secrets.PINAX_BOT_PGP_PASSPHRASE }}
35+
git_committer_name: pinax-bot
36+
git_committer_email: [email protected]
37+
git_config_global: true
38+
git_user_signingkey: true
39+
git_commit_gpgsign: true
40+
2941
- name: Set variables
3042
id: vars
3143
run: |
@@ -45,8 +57,9 @@ jobs:
4557
commit: ${{ env.RELEASE_COMMIT_MSG }}
4658
title: Upcoming Release Changes
4759
createGithubReleases: true
60+
setupGitUser: false
4861
githubReleaseName: ${{ steps.vars.outputs.date }}
4962
githubReleaseAssets: packages/cli/dist/*.tar.gz
5063
env:
5164
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GITHUB_TOKEN: ${{ secrets.PINAX_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)