Skip to content

Commit

Permalink
fix: 修改publish yml
Browse files Browse the repository at this point in the history
  • Loading branch information
翟胜佳 committed Sep 24, 2024
1 parent 7200891 commit 1d12c42
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d12c42

Please sign in to comment.