Skip to content

Commit 929197a

Browse files
committed
only deploy preview on node 24
1 parent b67d62e commit 929197a

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/test-deploy.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
node-version: [20, 22, 24]
15+
node-version: [20, 22]
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
@@ -28,6 +28,30 @@ jobs:
2828
run: |
2929
npm run build
3030
npm run build:docs
31+
32+
deploy:
33+
name: Deploy
34+
runs-on: ubuntu-latest
35+
needs: test-deploy
36+
if: github.event_name == 'pull_request'
37+
strategy:
38+
matrix:
39+
node-version: [24]
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version: ${{ matrix.node-version }}
47+
cache: npm
48+
49+
- name: Install dependencies
50+
run: npm install --frozen-lockfile
51+
- name: Build docs
52+
run: |
53+
npm run build
54+
npm run build:docs
3155
- name: Cache docs build output
3256
uses: actions/cache@v4
3357
with:
@@ -38,7 +62,7 @@ jobs:
3862
3963
deploy-preview:
4064
name: Deploy Preview
41-
needs: test-deploy
65+
needs: deploy
4266
if: github.event_name == 'pull_request'
4367
uses: ./.github/workflows/deploy-preview.yaml
4468
with:

0 commit comments

Comments
 (0)