Skip to content

Commit

Permalink
Do auth token yarn2+ wise
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Oct 23, 2023
1 parent e8d12b3 commit 57daa35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install
run: yarn
Expand All @@ -30,3 +28,5 @@ jobs:
- name: Publish if necessary
if: ${{ steps.check.outputs.exists == '0' }}
run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.0.cjs

npmAuthToken: ${NODE_AUTH_TOKEN}

0 comments on commit 57daa35

Please sign in to comment.