Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit a365dcd

Browse files
committed
fix: write .npmrc manually
1 parent 51ecc93 commit a365dcd

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,18 @@ jobs:
7878
id: did-release
7979
run: echo "::set-output name=released::$(node ./playwright-test/check-package.js)"
8080

81-
- name: Setup node for second publish
82-
uses: actions/setup-node@master
81+
- name: Setup NPM authentication for second publish
8382
if: ${{ matrix.node == '14' && matrix.playwright == 'latest' && steps.did-release.outputs.released == 'true' }}
84-
with:
85-
node-version: ${{ matrix.node }}
86-
registry-url: 'https://registry.npmjs.org/'
87-
scope: '@playwright-testing-library'
83+
run: |
84+
cat > .npmrc <<EOF
85+
registry=https://registry.npmjs.org/
86+
@playwright-testing-library:registry=https://registry.npmjs.org/
87+
//registry.npmjs.org/:_authToken=$NPM_TOKEN
88+
always-auth=true
89+
unsafe-perm=true
90+
EOF
8891
env:
89-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
92+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9093

9194
- name: Upload Coverage / Release / Playwright Test
9295
if: ${{ matrix.node == '14' && matrix.playwright == 'latest' && steps.did-release.outputs.released == 'true' }}

0 commit comments

Comments
 (0)