File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,15 @@ jobs:
1010 contents : read
1111 id-token : write
1212 steps :
13- - uses : actions/checkout@v6
14- # Setup .npmrc file to publish to npm
15- - uses : actions/setup-node@v6
13+ - name : Check out code
14+ uses : actions/checkout@v6
15+
16+ - name : Set up Node
17+ uses : actions/setup-node@v6
1618 with :
17- node-version : ' 20.x '
19+ node-version : ' 24 '
1820 registry-url : ' https://registry.npmjs.org'
1921
20- - name : Manually set .npmrc
21- run : |
22- # The token works fine in my own .npmjs, but for some reason the .npmrc that is being set up
23- # is not being picked up, manually setting the first line didnt work, maybe its the second?
24- # we might need
25- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./cratedb_sqlparse_js/.npmrc
26- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2722 - name : Set up Python
2823 uses : actions/setup-python@v6
2924 with :
4338 working-directory : ' cratedb_sqlparse_js'
4439 run : npm install && npm run build
4540
46- - run : npm publish --provenance --access public --registry=https://registry.npmjs.org/:authToken=${{ secrets.NPM_TOKEN }}
41+ - name : Publish
42+ run : npm publish --provenance --access public
4743 working-directory : ' cratedb_sqlparse_js'
48- env :
49- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments