File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Publishes to npm when a GitHub release is published.
2- # Required: Add NPM_TOKEN (npm automation token with publish permission) in
3- # Repository → Settings → Secrets and variables → Actions before merging.
4-
51name : Publish Package to npmjs
62
73on :
@@ -16,18 +12,12 @@ jobs:
1612 id-token : write
1713
1814 steps :
19- - uses : actions/checkout@v4
20- - uses : actions/setup-node@v4
15+ - uses : actions/checkout@v6
16+ - uses : actions/setup-node@v6
2117 with :
22- node-version-file : ' .nvmrc '
18+ node-version : ' 24 '
2319 registry-url : ' https://registry.npmjs.org'
2420 cache : ' npm'
25- - name : Verify NPM_TOKEN
26- run : |
27- if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
28- echo "::error::NPM_TOKEN secret is not set. Add it in Repository → Settings → Secrets and variables → Actions."
29- exit 1
30- fi
3121 - run : npm ci
3222 - name : Install clang-format
3323 run : sudo apt-get update && sudo apt-get install -y clang-format-15
You can’t perform that action at this time.
0 commit comments