Skip to content

Commit

Permalink
ci: fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 8, 2020
1 parent 07e69d8 commit 5cd4fa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
- name: Publish
run: |
yarn config set npmAuthToken ${{ secrets.NPM_RELEASE_TOKEN }}
yarn npm publish
4 changes: 3 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
yarnPath: ".yarn/releases/yarn-berry.cjs"
npmPublishAccess: public
npmPublishRegistry: "https://registry.npmjs.com/"
npmRegistryServer: "https://registry.npm.taobao.org/"
yarnPath: .yarn/releases/yarn-berry.cjs

0 comments on commit 5cd4fa2

Please sign in to comment.