From da38978c9706abe64a42db547005c3a5a0ff2864 Mon Sep 17 00:00:00 2001 From: Shing Date: Mon, 13 Nov 2023 20:21:26 +0800 Subject: [PATCH] Fixed yarn pulish error. --- .github/workflows/create-release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 03d2ec3..57c26a8 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -50,10 +50,8 @@ jobs: - name: Publish to NPM run: | - yarn config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" - yarn publish --no-git-checks --access=public - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc + yarn publish - name: Install Vuepress and Build Docs run: |