Skip to content

Commit f073cad

Browse files
authored
fix release again (#121)
1 parent d1773a8 commit f073cad

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/test-publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
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

@@ -63,11 +64,7 @@ jobs:
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

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
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+
16
strict-peer-dependencies=false
27
auto-install-peers=true

0 commit comments

Comments
 (0)