Skip to content

Commit 8718118

Browse files
committed
ci: update lint workflow
1 parent f94ea85 commit 8718118

File tree

4 files changed

+10
-29
lines changed

4 files changed

+10
-29
lines changed

.github/workflows/lint.yaml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,23 @@ on:
88

99
jobs:
1010
build:
11-
name: 🔍 Lint
11+
name: Lint
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 10
1314
steps:
1415
- uses: pnpm/action-setup@v4
1516
with:
16-
version: '9.15.0'
17+
version: '10.11.0'
1718

18-
- name: 📚 Checkout
19-
uses: actions/checkout@v4
19+
- uses: actions/checkout@v4
2020

21-
- name: 🟢 Node
22-
uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v4
2322
with:
2423
node-version: 22
2524
registry-url: https://registry.npmjs.org
2625

27-
- name: 💾 Cache pnpm store
28-
uses: actions/cache@v4
29-
with:
30-
path: ~/.pnpm-store
31-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
32-
restore-keys: |
33-
${{ runner.os }}-pnpm-
34-
35-
- name: 🍳 Install dependencies
26+
- name: Install dependencies
3627
run: pnpm install --frozen-lockfile
3728

38-
- name: 👷 Build
39-
run: pnpm build
40-
41-
- name: ✨ Lint
42-
run: pnpm lint
29+
- name: Lint
30+
run: turbo lint

.github/workflows/publish-dev.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ jobs:
2222
node-version: 22
2323
registry-url: https://registry.npmjs.org
2424

25-
- name: Cache pnpm store
26-
uses: actions/cache@v4
27-
with:
28-
path: ~/.pnpm-store
29-
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
30-
restore-keys: |
31-
${{ runner.os }}-pnpm-
32-
3325
- name: Install dependencies
3426
run: pnpm install --frozen-lockfile
3527

packages/devtools/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "commonjs",
77
"types": "dist/index.d.ts",
88
"scripts": {
9+
"lint": "tsc --noEmit",
910
"build:ui": "pnpm --filter=@commandkit/devtools-ui build",
1011
"copy-ui": "node -e \"require('node:fs').cpSync('../devtools-ui/dist', './ui', {recursive:true})\"",
1112
"build": "pnpm run build:ui && pnpm run copy-ui && pnpm run build:server",

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependsOn": ["^build"]
66
},
77
"lint": {
8-
"dependsOn": ["^lint", "^build"]
8+
"dependsOn": ["^build", "^lint"]
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)