File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6+
67jobs :
78 build :
89 runs-on : ubuntu-latest
910 permissions :
1011 contents : read
1112 id-token : write # required for npm trusted publisher (OIDC)
1213
14+
1315 steps :
1416 - uses : actions/checkout@v4
1517 - uses : actions/setup-node@v4
1618 with :
1719 node-version : " 18.x"
1820 registry-url : " https://registry.npmjs.org"
21+
1922 - name : Use latest npm (trusted publisher support)
2023 run : npm install -g npm@latest
24+
2125 - name : Clean legacy npm auth config
2226 run : npm config delete //registry.npmjs.org/:_authToken || true
27+
2328 - run : npm ci
2429 - run : npm run build
30+
2531 - name : Verify identity (OIDC)
2632 run : npm whoami
33+
2734 # OIDC auth + provenance; no token needed when using trusted publishers
2835 - run : npm publish --provenance --access public
You can’t perform that action at this time.
0 commit comments