Skip to content

Commit 672b131

Browse files
committed
chore: use SSH signing instead of GPG for lerna commits
1 parent 58c333a commit 672b131

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
token: ${{ secrets.GH_TOKEN }}
2222
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
2323

24-
- name: Import GPG key
24+
- name: Configure SSH signing
2525
run: |
26-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
27-
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format=long | grep sec | head -n1 | awk '{print $2}' | cut -d'/' -f2)
28-
git config --global user.signingkey "$GPG_KEY_ID"
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
2931
git config --global commit.gpgsign true
3032
git config --global tag.gpgsign true
31-
env:
32-
GPG_TTY: $(tty)
3333
3434
- name: Git Identity
3535
run: |

0 commit comments

Comments
 (0)