Skip to content

Commit 8c4a9b9

Browse files
committed
Try setting also the NPM_TOKEN in npmrc
1 parent 29ce4f1 commit 8c4a9b9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release_javascript.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ jobs:
1818
registry-url: 'https://registry.npmjs.org'
1919

2020
- name: Manually set .npmrc
21-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./cratedb_sqlparse_js/.npmrc
22-
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
2327
- name: Set up Python
2428
uses: actions/setup-python@v6
2529
with:
@@ -39,7 +43,7 @@ jobs:
3943
working-directory: 'cratedb_sqlparse_js'
4044
run: npm install && npm run build
4145

42-
- run: npm publish --provenance --access public
46+
- run: npm publish --provenance --access public --registry=https://registry.npmjs.org/:authToken=${{ secrets.NPM_TOKEN }}
4347
working-directory: 'cratedb_sqlparse_js'
4448
env:
4549
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)