File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 node-version : ' 18.x'
2323 scope : ' @foo-software'
24+ registry-url : ' https://registry.npmjs.org'
25+ always-auth : true
2426 - name : Full Clean (no npm cache)
2527 run : |
2628 rm -rf node_modules
3739 npm ls @jest/types || true
3840
3941 - name : Publish Packages
42+ env :
43+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4044 run : |
41- echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ${{ github.workspace }}/.npmrc
45+ # Force npm to use an explicit userconfig (matches the local workaround that actually publishes)
46+ printf "//registry.npmjs.org/:_authToken=%s\n" "$NPM_TOKEN" > "${GITHUB_WORKSPACE}/.npmrc"
47+ export NPM_CONFIG_USERCONFIG="${GITHUB_WORKSPACE}/.npmrc"
48+ npm whoami
4249 node packages/foo-api-ci-tools/dist/bin/config-git.js
4350 node packages/foo-api-ci-tools/dist/bin/publish-packages.js
You can’t perform that action at this time.
0 commit comments