Skip to content

Commit e67b8c1

Browse files
committed
fix: ci
1 parent 3617851 commit e67b8c1

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/ci.yml

+14-17
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,30 @@ on:
99
branches:
1010
- main
1111
- dev
12+
workflow_dispatch:
1213

1314
jobs:
1415
ci:
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
matrix:
19-
os: [ubuntu-latest]
20-
node: [20]
16+
runs-on: ubuntu-latest
2117

2218
steps:
23-
- uses: actions/setup-node@v1
24-
with:
25-
node-version: ${{ matrix.node }}
19+
- name: Checkout
20+
uses: actions/checkout@v4
2621

27-
- name: checkout
28-
uses: actions/checkout@master
22+
- uses: pnpm/action-setup@v4
23+
name: Install pnpm
24+
with:
25+
version: 9
26+
run_install: false
2927

30-
- name: cache node_modules
31-
uses: actions/cache@v1
28+
- name: Install Node.js
29+
uses: actions/setup-node@v4
3230
with:
33-
path: node_modules
34-
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/pnpm-lock.yaml')) }}
31+
node-version: 20
32+
cache: pnpm
3533

3634
- name: Install dependencies
37-
if: steps.cache.outputs.cache-hit != 'true'
38-
run: pnpm i
35+
run: pnpm install
3936

4037
- name: Test
4138
run: pnpm test

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"build": "unbuild",
3939
"dev": "vitest",
4040
"lint": "eslint .",
41+
"lint:fix": "eslint --fix .",
4142
"release": "yarn build && changelogen --patch && git push --follow-tags && yarn publish",
4243
"test": "pnpm lint && pnpm test:types && vitest --run",
4344
"test:types": "tsc --noEmit --skipLibCheck"

0 commit comments

Comments
 (0)