Skip to content

Commit 96ac3d1

Browse files
committed
separate lint job
1 parent c9c0abf commit 96ac3d1

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v3
20+
with:
21+
version: 9
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: 'pnpm'
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
- name: Lint
29+
run: pnpm run lint
30+
1431
build:
1532
runs-on: ubuntu-latest
1633
steps:
@@ -29,8 +46,6 @@ jobs:
2946
static_site_generator: gatsby
3047
- name: Install dependencies
3148
run: pnpm install --frozen-lockfile
32-
- name: Lint
33-
run: pnpm run lint
3449
- name: Build
3550
run: pnpm run build
3651
- name: Upload artifact

0 commit comments

Comments
 (0)