We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6f725b commit 02a4f5bCopy full SHA for 02a4f5b
1 file changed
.github/workflows/release.yml
@@ -26,7 +26,9 @@ jobs:
26
uses: actions/setup-node@v4
27
with:
28
node-version: 22.x
29
- registry-url: https://registry.npmjs.org
+
30
+ - name: Use current npm for trusted publishing
31
+ run: npm install -g npm@latest
32
33
- name: Enable Corepack
34
run: corepack enable
@@ -71,5 +73,14 @@ jobs:
71
73
- name: Audit production dependencies
72
74
run: pnpm security:audit
75
76
+ - name: Ensure tokenless publishing
77
+ run: |
78
+ set -euo pipefail
79
+ if [ -n "${NODE_AUTH_TOKEN:-}" ]; then
80
+ echo "NODE_AUTH_TOKEN must not be set for npm trusted publishing."
81
+ exit 1
82
+ fi
83
+ npm --version
84
85
- name: Publish to npm
86
run: npm publish ./dist/ngbootstrap --access public --provenance
0 commit comments