Skip to content

Commit

Permalink
Merge pull request #2138 from sheinsight/fix-github-action-yml
Browse files Browse the repository at this point in the history
fix: 修改publish yml
  • Loading branch information
saint3347 authored Sep 24, 2024
2 parents 7200891 + 1d12c42 commit 6791df5
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 6791df5

Please sign in to comment.