File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 99 - " v[0-9]+.[0-9]+.[0-9]+"
1010 - " v[0-9]+.[0-9]+.[0-9]+-*"
1111
12+ permissions :
13+ contents : read
14+
1215env :
1316 IMAGE_NAME : ${{ github.repository_owner }}/fabric-nodeenv
1417
@@ -19,22 +22,27 @@ jobs:
1922 publishnpm :
2023 runs-on : ubuntu-24.04
2124 needs : test
25+ permissions :
26+ contents : read
27+ id-token : write
2228 steps :
2329 - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
2430 with :
25- node-version : " 18.x "
31+ node-version : " lts/* "
2632 registry-url : " https://registry.npmjs.org"
33+ # Ensure npm 11.5.1 or later for trusted publishing support
34+ - name : Update npm
35+ run : npm install -g npm@latest
2736 - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
2837 with :
2938 name : node-tgzs
3039 path : build/
31- - run : |
40+ - name : Publish packages with provenance (OIDC)
41+ run : |
3242 set -xev
3343 ls -lart build/
3444 cd build
3545 find . -type f -name 'fabric-*.tgz' -exec npm publish {} \;
36- env:
37- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3846
3947 docker-build-push :
4048 name : Push Docker image
You can’t perform that action at this time.
0 commit comments