diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a12d9a3..4751053 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 diff --git a/.yarnrc.yml b/.yarnrc.yml index 3a74c5d..b3ce445 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -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