File tree Expand file tree Collapse file tree 1 file changed +20
-14
lines changed
Expand file tree Collapse file tree 1 file changed +20
-14
lines changed Original file line number Diff line number Diff line change 11name : documentation
22
3- on :
4- pull_request :
5- branches : [master]
6- push :
7- branches : [master]
3+ on : [push, pull_request]
84
95jobs :
106 checks :
11- if : github.event_name != 'push'
127 runs-on : ubuntu-latest
138 steps :
14- - uses : actions/checkout@v2
9+ - uses : actions/checkout@v3
1510 - uses : actions/setup-node@v3
1611 with :
17- node-version : 16
12+ node-version : 22
1813 cache : yarn
14+ - uses : actions/cache@v3
15+ id : yarn-cache
16+ with :
17+ path : ' node_modules'
18+ key : yarn-${{ hashFiles('yarn.lock') }}
19+ - run : yarn install --frozen-lockfile
20+ if : steps.yarn-cache.outputs.cache-hit != 'true'
1921 - name : Test Build
2022 run : |
21- yarn install --frozen-lockfile
2223 yarn lint
2324 yarn typecheck
2425 yarn build
2526 gh-release :
26- if : github.event_name != 'pull_request '
27+ if : github.ref_name == 'master '
2728 runs-on : ubuntu-latest
2829 steps :
29- - uses : actions/checkout@v2
30+ - uses : actions/checkout@v3
3031 - uses : actions/setup-node@v3
3132 with :
32- node-version : 16
33+ node-version : 22
3334 cache : yarn
34- - name : Install dependencies
35- run : yarn install --frozen-lockfile
35+ - uses : actions/cache@v3
36+ id : yarn-cache
37+ with :
38+ path : ' node_modules'
39+ key : yarn-${{ hashFiles('yarn.lock') }}
40+ - run : yarn install --frozen-lockfile
41+ if : steps.yarn-cache.outputs.cache-hit != 'true'
3642 - name : Build website
3743 env :
3844 TRACKING_ID : ${{ secrets.TRACKING_ID }}
You can’t perform that action at this time.
0 commit comments