Skip to content

Commit

Permalink
ci: change auth with yarn set config in publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
moh3n9595 committed Dec 31, 2022
1 parent 34a4431 commit 5361d21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
node-version: 19
registry-url: https://registry.npmjs.org/
- run: yarn install --check-cache
- run: yarn npm publish --access=public
- run: yarn config set npmAuthToken ${{secrets.NPM_TOKEN}}
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
release-tag:
Expand Down
3 changes: 2 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
checksumBehavior: update
nodeLinker: node-modules
npmPublishAccess: public
yarnPath: .yarn/releases/yarn-3.3.1.cjs
checksumBehavior: 'update'

0 comments on commit 5361d21

Please sign in to comment.