Skip to content

Commit a1a4c67

Browse files
GPG Signing
1 parent 342e207 commit a1a4c67

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
env:
2222
GPG_PRIVATE_KEY: ${{ secrets.PRIVATE_GPG_KEY }}
2323

24+
- name: Verify GPG Key Import
25+
run: |
26+
gpg --list-secret-keys --keyid-format=long
27+
2428
- name: Configure GPG for Non-Interactive Signing
2529
run: |
2630
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
@@ -40,6 +44,11 @@ jobs:
4044
echo "export GPG_TTY=$(tty)" >> ~/.bashrc
4145
source ~/.bashrc
4246
47+
- name: Restart GPG Agent
48+
run: |
49+
killall gpg-agent
50+
gpg-agent --daemon
51+
4352
- name: Configure Git for GPG Signing
4453
run: |
4554
git config --global user.name "Irfan Shadik Rishad"

0 commit comments

Comments
 (0)