This repository was archived by the owner on Aug 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff 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' }}
You can’t perform that action at this time.
0 commit comments