Skip to content

Commit

Permalink
🐛 fix: Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 21, 2023
1 parent a174453 commit 8f15503
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ jobs:
- name: Build
run: bun run build

- name: Switch Node ENV
uses: actions/setup-node@v3
with:
node-version: '16'

# npm 8 和 9 会在 `npm version` 时执行依赖树命令,进而报错退出
# Refs: https://github.com/semantic-release/npm/issues/540
- name: Setup npm 7
run: npm i -g npm@7 --registry=https://registry.npmjs.org

- name: Release
run: bun run release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8f15503

Please sign in to comment.