Skip to content

Commit eb20ebb

Browse files
authored
chore: configure lerna to sign commits (#2502)
1 parent 17b31af commit eb20ebb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/deploy-package.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
persist-credentials: false
2121
token: ${{ secrets.GH_TOKEN }}
2222
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
23+
24+
- name: Configure SSH signing
25+
run: |
26+
mkdir -p ~/.ssh
27+
echo "${{ secrets.SSH_SIGNING_PRIVATE_KEY }}" > ~/.ssh/signing_key
28+
chmod 600 ~/.ssh/signing_key
29+
git config --global gpg.format ssh
30+
git config --global user.signingkey ~/.ssh/signing_key
31+
git config --global commit.gpgsign true
32+
git config --global tag.gpgsign true
33+
2334
- name: Git Identity
2435
run: |
2536
git config --global user.name 'scaleway-bot'

lerna.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"conventionalCommits": true,
88
"message": "chore(release): publish",
99
"createRelease": "github",
10-
"loglevel": "verbose"
10+
"loglevel": "verbose",
11+
"signGitCommit": true,
12+
"signGitTag": true
1113
}
1214
},
1315
"$schema": "node_modules/lerna/schemas/lerna-schema.json"

0 commit comments

Comments
 (0)