We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cbcb00 commit b9509f2Copy full SHA for b9509f2
1 file changed
.github/workflows/publish.yml
@@ -28,17 +28,24 @@ jobs:
28
- name: Install Node.js
29
uses: actions/setup-node@v4
30
with:
31
- node-version: 20
+ node-version: 24
32
cache: "pnpm"
33
cache-dependency-path: pnpm-lock.yaml
34
registry-url: https://registry.npmjs.org/
35
36
- name: Install dependencies
37
run: pnpm install --frozen-lockfile
38
39
+ - name: Check trusted publishing prerequisites
40
+ run: |
41
+ node --version
42
+ npm --version
43
+ if [ -n "${NODE_AUTH_TOKEN:-}" ] || [ -n "${NPM_TOKEN:-}" ]; then
44
+ echo "NODE_AUTH_TOKEN/NPM_TOKEN is set. Remove token auth to use npm trusted publishing."
45
+ exit 1
46
+ fi
47
+
48
- name: Build and publish to npm
49
run: |
50
pnpm build
51
npm publish --access public --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments