We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd8df77 commit 42e3b14Copy full SHA for 42e3b14
.github/workflows/rust-release.yml
@@ -175,6 +175,8 @@ jobs:
175
permissions:
176
id-token: write
177
contents: read
178
+ env:
179
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
180
181
steps:
182
- uses: actions/checkout@v6
@@ -189,6 +191,16 @@ jobs:
189
191
- name: Update npm
190
192
run: npm install -g npm@latest
193
194
+ - name: Verify npm auth configuration
195
+ shell: bash
196
+ run: |
197
+ set -euo pipefail
198
+ if [[ -n "${NODE_AUTH_TOKEN:-}" ]]; then
199
+ echo "Using NPM_TOKEN secret for automated publish."
200
+ else
201
+ echo "NPM_TOKEN secret is not set; falling back to npm trusted publishing."
202
+ fi
203
+
204
- name: Download Linux x64 artifact
205
uses: actions/download-artifact@v8
206
with:
0 commit comments