Skip to content

Commit a5480c7

Browse files
committed
use setup-node auth
1 parent 6eda41e commit a5480c7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/actions/yarn/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ runs:
66
steps:
77
- name: Setup Node.js
88
uses: actions/setup-node@v3
9+
env:
10+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
911
with:
1012
node-version-file: .nvmrc
13+
registry-url: https://registry.npmjs.org/
1114
- name: Custom Cypress Cache Folder
1215
shell: bash
1316
run: |

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ jobs:
3838
- uses: ./.github/actions/yarn
3939

4040
- run: yarn turbo run build --concurrency=3
41-
- name: NPM Auth
42-
env:
43-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44-
run: |
45-
echo "registry=https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
41+
4642
- name: Publish
4743
env:
4844
HUSKY_ENABLED: true

0 commit comments

Comments
 (0)