File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,29 @@ jobs:
1010 runs-on : ubuntu-latest
1111 permissions :
1212 contents : read
13+ id-token : write
1314 packages : write
1415
1516 steps :
16- - name : Checkout code
17- uses : actions/checkout@v4
18-
19- - name : Setup Node.js
20- uses : actions/setup-node@v4
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
2119 with :
2220 node-version : ' 22.x'
2321 cache : yarn
2422
23+ - name : Add .npmrc
24+ run : cp .npmrc.template .npmrc
25+
2526 - name : Install dependencies
2627 run : yarn install
2728
2829 - name : Build package
2930 run : yarn build
3031
32+ - name : Set the NPM registry with token
33+ run : |
34+ echo "registry=https://registry.npmjs.org/" > .npmrc
35+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
36+
3137 - name : Publish to NPM
32- run : npm publish --scope=@internxt --registry=https://registry.npmjs.org/ --access public --tag latest
33- env :
34- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
38+ run : npm publish --scope=@internxt --access public
You can’t perform that action at this time.
0 commit comments