Skip to content

Commit d82ebf3

Browse files
committed
chore: update CI workflow to use latest actions and improve formatting
1 parent ade8ae5 commit d82ebf3

1 file changed

Lines changed: 75 additions & 79 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 75 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,80 @@
11
name: Check
22

33
on:
4-
push:
5-
branches: [main, next]
6-
pull_request:
7-
branches: [main, next]
4+
push:
5+
branches: [main, next]
6+
pull_request:
7+
branches: [main, next]
88

99
jobs:
10-
lint_registry:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- uses: actions/checkout@v6
15-
16-
- name: Setup Node.js
17-
uses: actions/setup-node@v6
18-
with:
19-
node-version: "22"
20-
21-
- name: Install pnpm
22-
uses: pnpm/action-setup@v4
23-
24-
- name: Get pnpm store directory
25-
shell: bash
26-
run: |
27-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28-
29-
- name: Setup pnpm cache
30-
uses: actions/cache@v5
31-
with:
32-
path: ${{ env.STORE_PATH }}
33-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34-
restore-keys: |
35-
${{ runner.os }}-pnpm-store-
36-
37-
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
39-
40-
- name: Check Website Eslint
41-
run: |
42-
pnpm run website:lint
43-
44-
- name: Check Registry
45-
run: |
46-
pnpm run website:registry
47-
48-
build:
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- uses: actions/checkout@v6
53-
54-
- name: Setup Node.js
55-
uses: actions/setup-node@v6
56-
with:
57-
node-version: "22"
58-
59-
- name: Install pnpm
60-
uses: pnpm/action-setup@v4
61-
62-
- name: Get pnpm store directory
63-
shell: bash
64-
run: |
65-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
66-
67-
- name: Setup pnpm cache
68-
uses: actions/cache@v5
69-
with:
70-
path: ${{ env.STORE_PATH }}
71-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
72-
restore-keys: |
73-
${{ runner.os }}-pnpm-store-
74-
75-
- name: Install dependencies
76-
run: pnpm install --frozen-lockfile
77-
78-
- name: Build Content Collections
79-
run: |
80-
pnpm run website:build-cc
81-
82-
- name: Build Website
83-
run: |
84-
pnpm run website:build
10+
lint_registry:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v6
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v6
21+
22+
- name: Get pnpm store directory
23+
shell: bash
24+
run: |
25+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
26+
27+
- name: Setup pnpm cache
28+
uses: actions/cache@v5
29+
with:
30+
path: ${{ env.STORE_PATH }}
31+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
32+
restore-keys: |
33+
${{ runner.os }}-pnpm-store-
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Check Website Eslint
39+
run: |
40+
pnpm run website:lint
41+
42+
- name: Check Registry
43+
run: |
44+
pnpm run website:registry
45+
46+
build:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v6
51+
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v6
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v6
57+
58+
- name: Get pnpm store directory
59+
shell: bash
60+
run: |
61+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
62+
63+
- name: Setup pnpm cache
64+
uses: actions/cache@v5
65+
with:
66+
path: ${{ env.STORE_PATH }}
67+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
68+
restore-keys: |
69+
${{ runner.os }}-pnpm-store-
70+
71+
- name: Install dependencies
72+
run: pnpm install --frozen-lockfile
73+
74+
- name: Build Content Collections
75+
run: |
76+
pnpm run website:build-cc
77+
78+
- name: Build Website
79+
run: |
80+
pnpm run website:build

0 commit comments

Comments
 (0)