File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 publish-github :
2424 runs-on : ubuntu-latest
2525 needs : check
26+ if : github.ref == 'refs/heads/main'
2627 steps :
2728 - uses : actions/checkout@v4
2829 # Setup .npmrc file to publish to GitHub Packages
@@ -37,20 +38,23 @@ jobs:
3738 publish-npm :
3839 runs-on : ubuntu-latest
3940 needs : check
41+ if : github.ref == 'refs/heads/main'
42+ permissions :
43+ id-token : write
44+ contents : read
4045 environment : npmjs
4146 steps :
4247 - uses : actions/checkout@v4
4348 # Setup .npmrc file to publish to npmjs.org
4449 - uses : actions/setup-node@v4
4550 with :
46- node-version : ' 22 '
51+ node-version : ' 24 '
4752 registry-url : ' https://registry.npmjs.org'
4853 - run : npm install
49- - run : npm publish
50- env :
51- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
54+ - run : npm publish --access public
5255 release-github :
5356 runs-on : ubuntu-latest
57+ if : github.ref == 'refs/heads/main'
5458 needs :
5559 - publish-github
5660 - publish-npm
Original file line number Diff line number Diff line change 3535 "sourceMap" : true ,
3636 "instrument" : true
3737 },
38- "repository" : " git://github.com/scality/hdclient.git " ,
38+ "repository" : {
39+ "type" : " git" ,
40+ "url" : " https://github.com/scality/hdclient.git"
41+ },
3942 "author" : " Maxime Lubin" ,
4043 "dependencies" : {
4144 "httpagent" : " github:scality/httpagent#1.1.0" ,
You can’t perform that action at this time.
0 commit comments