File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 name : Assemble & Publish
7676 needs : build
7777 runs-on : ubuntu-latest
78+ # New publication workflow with OIDC authentication https://docs.npmjs.com/trusted-publishers
79+ # THe Github CI is declared on NPM as a trusted publisher
80+ permissions :
81+ contents : read
82+ id-token : write
7883 steps :
7984 - name : Checkout
8085 uses : actions/checkout@v4
@@ -94,14 +99,12 @@ jobs:
9499 - name : Setup Node (for publish)
95100 uses : actions/setup-node@v4
96101 with :
97- node-version : ' 22.21.1 '
102+ node-version : ' 22'
98103 registry-url : ' https://registry.npmjs.org'
99104
100105 - name : Preview npm tarball
101106 run : npm pack --dry-run
102107
103108 - name : Publish to npm
104109 if : startsWith(github.ref, 'refs/tags/v')
105- env :
106- NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
107110 run : npm publish
You can’t perform that action at this time.
0 commit comments