Skip to content

Commit 42be171

Browse files
committed
ci: sign off release pr commit
1 parent 957b506 commit 42be171

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
mobile_release_created: ${{ steps.release.outputs.leather-io-mobile--release-created }}
2020
# Our PNPM workspace issue was fixed here: https://github.com/googleapis/release-please/pull/2281
2121
steps:
22+
- name: Import GPG key
23+
uses: crazy-max/ghaction-import-gpg@v5
24+
with:
25+
gpg_private_key: ${{ secrets.LEATHER_BOT_GPG_PRIVATE_KEY }}
26+
passphrase: ${{ secrets.LEATHER_BOT_GPG_PASSPHRASE }}
27+
git_user_signingkey: true
28+
git_commit_gpgsign: true
29+
2230
- uses: google-github-actions/release-please-action@v3
2331
id: release
2432
with:
@@ -29,6 +37,8 @@ jobs:
2937
manifest-file: .release-please-manifest.json
3038
default-branch: dev
3139
release-type: 'minor'
40+
# Add GPG signing configuration
41+
signoff: true
3242

3343
# The logic below handles the npm publication:
3444
deploy:

.github/workflows/update-mobile-versions.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,20 @@ jobs:
6464
env:
6565
VERSION: ${{env.VERSION}}
6666

67-
- name: Update app.config.js
68-
shell: bash
67+
- name: Update version in app.config.js
6968
working-directory: ./apps/mobile
7069
# Note if you want to debug this on macos you'll need to use sed -i '' <rest of command>
7170
run: |
7271
sed -i "s/version: '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*'/version: '$VERSION'/g" app.config.js
7372
73+
- name: Import GPG key
74+
uses: crazy-max/ghaction-import-gpg@v5
75+
with:
76+
gpg_private_key: ${{ secrets.LEATHER_BOT_GPG_PRIVATE_KEY }}
77+
passphrase: ${{ secrets.LEATHER_BOT_GPG_PASSPHRASE }}
78+
git_user_signingkey: true
79+
git_commit_gpgsign: true
80+
7481
- name: Commit version bump to release branch
7582
run: |
7683
git config --global user.name "leather-bot <[email protected]>"

0 commit comments

Comments
 (0)