Skip to content

Commit ebf5188

Browse files
committed
fix: ci
1 parent 3f03d16 commit ebf5188

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
node-version:
15-
- "18"
15+
- 18
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919
- name: Setup Node
2020
uses: actions/setup-node@v3
2121
with:
2222
node-version: ${{ matrix.node-version }}
23-
- run: npm ci
24-
- run: npm test run
25-
- run: npm run build
23+
- uses: pnpm/action-setup@v2
24+
name: Install pnpm
25+
id: pnpm-install
26+
with:
27+
version: 7
28+
run_install: false
29+
- run: pnpm
30+
- run: pnpm test run
31+
- run: pnpm build

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ jobs:
1616
with:
1717
node-version: 18
1818
registry-url: "https://registry.npmjs.org"
19-
- run: npm ci
20-
- run: npm test run
21-
- run: npm run build
22-
- run: npm publish
19+
- uses: pnpm/action-setup@v2
20+
name: Install pnpm
21+
id: pnpm-install
22+
with:
23+
version: 7
24+
run_install: false
25+
- run: pnpm install
26+
- run: pnpm test run
27+
- run: pnpm build
28+
- run: pnpm publish
2329
env:
2430
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2531

0 commit comments

Comments
 (0)