We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73be9a0 + 0339929 commit 1c1a0dfCopy full SHA for 1c1a0df
1 file changed
.github/workflows/release-check.yml
@@ -19,6 +19,7 @@ concurrency:
19
jobs:
20
release:
21
runs-on: ubuntu-latest
22
+ environment: npm-publish
23
steps:
24
- name: Guard workflow_dispatch caller permissions
25
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -122,6 +123,16 @@ jobs:
122
123
- name: Type check
124
run: npx tsc --noEmit
125
126
+ - name: Verify npm auth
127
+ env:
128
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
129
+ run: |
130
+ test -n "${NODE_AUTH_TOKEN}" || {
131
+ echo "NPM_TOKEN missing (check job environment + secret scope)"
132
+ exit 1
133
+ }
134
+ npm whoami --registry=https://registry.npmjs.org/
135
+
136
- name: Run semantic-release
137
env:
138
GH_TOKEN: ${{ steps.app-token.outputs.token }}
0 commit comments