Skip to content

Commit 7823be2

Browse files
committed
ci: switch GitHub Actions workflows from npm to pnpm
1 parent 182da5a commit 7823be2

File tree

4 files changed

+17
-309
lines changed

4 files changed

+17
-309
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,20 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
2023
- name: Setup Node.js ${{ matrix.node-version }}
2124
uses: actions/setup-node@v4
2225
with:
2326
node-version: ${{ matrix.node-version }}
24-
cache: npm
27+
cache: pnpm
2528

2629
- name: Install dependencies
27-
run: npm install
30+
run: pnpm install
2831

2932
- name: TypeCheck
30-
run: npm run typecheck
33+
run: pnpm run typecheck
3134

3235
- name: Build
33-
run: npm run build
36+
run: pnpm run build

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,27 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
2225
- name: Setup Node.js
2326
uses: actions/setup-node@v4
2427
with:
2528
node-version: 20
26-
cache: npm
29+
cache: pnpm
2730
registry-url: https://registry.npmjs.org/
2831

2932
- name: Install dependencies
30-
run: npm install
33+
run: pnpm install
3134

3235
- name: TypeCheck
33-
run: npm run typecheck
36+
run: pnpm run typecheck
3437

3538
- name: Build
36-
run: npm run build
39+
run: pnpm run build
3740

3841
- name: Publish to npm
39-
run: npm publish --provenance --access public
42+
run: pnpm publish --provenance --access public --no-git-checks
4043
env:
4144
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4245

0 commit comments

Comments
 (0)