Skip to content

Commit 1afb2b7

Browse files
committed
fix: github actions
1 parent 6339ab7 commit 1afb2b7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
18-
- run: npm ci
18+
- run: corepack enable
19+
- run: pnpm i
1920
- name: Release
2021
env:
2122
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2223
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23-
run: npx semantic-release
24+
run: pnpm npx semantic-release

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
- run: npm ci
17+
- run: corepack enable
18+
- run: pnpm i
1819
- name: Test
19-
run: npm run test
20+
run: pnpm test
2021
lint:
2122
name: Lint
2223
runs-on: ubuntu-latest
@@ -25,6 +26,7 @@ jobs:
2526
- uses: actions/setup-node@v3
2627
with:
2728
node-version: 18
28-
- run: npm ci
29+
- run: corepack enable
30+
- run: pnpm i
2931
- name: Lint
30-
run: npm run lint
32+
run: pnpm lint

0 commit comments

Comments
 (0)