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:
78
78
id : did-release
79
79
run : echo "::set-output name=released::$(node ./playwright-test/check-package.js)"
80
80
81
- - name : Setup node for second publish
82
- uses : actions/setup-node@master
81
+ - name : Setup NPM authentication for second publish
83
82
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
88
91
env :
89
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
92
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
90
93
91
94
- name : Upload Coverage / Release / Playwright Test
92
95
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