Skip to content

Commit 7f8fad6

Browse files
committed
fix: run semantic-release using pnpm
1 parent 463c67f commit 7f8fad6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,14 @@ jobs:
138138
run: pnpm build
139139
- name: Docs
140140
run: pnpm typedoc
141-
- name: Update npm
142-
run: npm install -g npm@latest
143141
- name: Release
144142
if: github.ref_name == 'main'
145-
run: npx semantic-release
143+
run: pnpm semantic-release
146144
env:
147145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148146
- name: Release (Dry Run)
149147
if: github.ref_name != 'main'
150-
run: npx semantic-release --dry-run
148+
run: pnpm semantic-release --dry-run
151149
env:
152150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153151
- name: Upload Documentation

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"test:watch": "vitest --watch --coverage --coverage.include=src",
4040
"test": "vitest --coverage --coverage.include=src",
4141
"watch": "npm-run-all --race --parallel *:watch",
42-
"update": "npm-check-updates -u"
42+
"update": "npm-check-updates -u",
43+
"semantic-release": "semantic-release"
4344
},
4445
"devDependencies": {
4546
"@antfu/eslint-config": "6.1.0",

0 commit comments

Comments
 (0)