File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1- # When anyone pushes to npm branch in this repo, the package will be published to npm. This action requires
2- # access to NPM_TOKEN secret. Contact core.ai admins to get access to core.ais org tokens.
3- # To publish to your own npm account, follow this https://docs.npmjs.com/creating-and-viewing-access-tokens
1+ # When anyone pushes to npm branch in this repo, the package will be published to npm.
2+ # https://docs.npmjs.com/trusted-publishers is active in this repo
43name : Publish package to npm
54
65on :
76 push :
87 branches : [ npm ]
98
9+ permissions :
10+ id-token : write # Required for OIDC
11+ contents : read
12+
1013jobs :
1114 build-tasks :
1215 runs-on : ubuntu-latest
1316 steps :
14- - uses : actions/checkout@v4
17+ - uses : actions/checkout@v6
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 24'
21+ registry-url : ' https://registry.npmjs.org'
1522 - name : Npm Install
1623 run : |
1724 npm ci
2229 - name : Publishing package to npm repository
2330 run : |
2431 npm publish --access public
25- env :
26- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments