Skip to content

Commit 8bfe970

Browse files
feat: add npm token verification step in release workflow
1 parent 9babced commit 8bfe970

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
node-version: 22
5353
registry-url: https://registry.npmjs.org
5454

55+
- name: Verify npm token
56+
env:
57+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
58+
run: |
59+
if [ -z "${NODE_AUTH_TOKEN}" ]; then
60+
echo "NPM_TOKEN is not configured for this workflow."
61+
exit 1
62+
fi
63+
npm whoami --registry=https://registry.npmjs.org/
64+
5565
- name: Publish to npm
5666
run: npm publish ./dist/create-acme-platform --access public --provenance
5767
env:

0 commit comments

Comments
 (0)