File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed
Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 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 :
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 :
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 :
You can’t perform that action at this time.
0 commit comments