From 1d12c4206b07297164d0d71bdd50c08dffa2c93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=9F=E8=83=9C=E4=BD=B3?= Date: Tue, 24 Sep 2024 11:03:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9publish=20yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3dddcd1eb..62b9bfd4f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,16 +18,17 @@ jobs: fetch-depth: 1 ref: ${{ github.event.release.tag_name}} - - name: Use Pnpm - uses: pnpm/action-setup@v4 + - name: Run install + uses: borales/actions-yarn@v4 + env: + NODE_TLS_REJECT_UNAUTHORIZED: '0' with: - version: 9.4.0 - - - name: dependencies - run: yarn + cmd: install - - name: build - run: yarn build + - name: Build production bundle + uses: borales/actions-yarn@v4 + with: + cmd: build - name: set token run: echo -e //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc