File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 4040 - name : Install Node.js and npm
4141 uses : actions/setup-node@v4
4242 with :
43+ registry-url : " https://registry.npmjs.org/"
4344 node-version : ${{ matrix.node_version }}
4445 cache : pnpm
4546
6364 - name : Production build
6465 run : pnpm nx run-many -t build
6566
66- - name : Configure NPM authentication for publishing
67- if : ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'push' && contains(github.ref, '.') }}
68- run : |
69- echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
70-
67+ # With help from https://stackoverflow.com/questions/75357158/github-actions-npm-publish-fails-with-err-code-eneedauth
7168 - name : pnpm publish platform
7269 if : ${{ matrix.os == 'ubuntu-latest' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/platform_v') && contains(github.ref, '.') }}
7370 shell : bash
Original file line number Diff line number Diff line change 1+ ; Publishing help from https://stackoverflow.com/questions/75357158/github-actions-npm-publish-fails-with-err-code-eneedauth
2+ //registry.npmjs.org/:_authToken = ${ NODE_AUTH_TOKEN }
3+ registry = https://registry.npmjs.org
4+ always-auth = true
5+
16strict-peer-dependencies = false
27auto-install-peers = true
You can’t perform that action at this time.
0 commit comments