File tree Expand file tree Collapse file tree 4 files changed +16
-42
lines changed Expand file tree Collapse file tree 4 files changed +16
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55jobs :
66 release :
77 name : Release
8- needs : cache_node_modules
98 runs-on : ubuntu-latest
109 steps :
1110 - name : Checkout repository code
12- uses : actions/checkout@main
11+ uses : actions/checkout@v2
1312
14- - name : Load node_modules
13+ - name : Cache node_modules
1514 id : cache-node-modules
16- uses : actions/cache@main
15+ uses : actions/cache@v2
1716 with :
1817 path : node_modules
19- key : node_modules-${{ hashFiles('package-lock.json') }}
18+ key : node_modules-deploy- ${{ hashFiles('package-lock.json') }}
2019
21- - name : Install node_modules
20+ - name : Install node modules
2221 if : steps.cache-node-modules.outputs.cache-hit != 'true'
2322 run : npm install
23+
2424 - run : npm run generate
2525 - run : npm run test
2626 - run : npx semantic-release
Original file line number Diff line number Diff line change 44 branches : [ main ]
55jobs :
66 build-and-deploy :
7- needs : cache_node_modules
87 runs-on : ubuntu-latest
98 env :
109 NODE_OPTIONS : ' --max_old_space_size=4096'
1110 steps :
1211 - name : Checkout 🛎️
13- uses : actions/checkout@main
12+ uses : actions/checkout@v2
1413 with :
1514 persist-credentials : false
1615
17- - name : Load node_modules
16+ - name : Cache node_modules
1817 id : cache-node-modules
19- uses : actions/cache@main
18+ uses : actions/cache@v2
2019 with :
2120 path : node_modules
22- key : node_modules-${{ hashFiles('package-lock.json') }}
21+ key : node_modules-deploy- ${{ hashFiles('package-lock.json') }}
2322
24- - name : Install node_modules
23+ - name : Install node modules
2524 if : steps.cache-node-modules.outputs.cache-hit != 'true'
2625 run : npm install
2726
Original file line number Diff line number Diff line change 66jobs :
77 release :
88 name : Test
9- needs : cache_node_modules
109 runs-on : ubuntu-latest
1110 steps :
1211 - name : Checkout repository code
13- uses : actions/checkout@main
12+ uses : actions/checkout@v2
1413
15- - name : Load node_modules
14+ - name : Cache node_modules
1615 id : cache-node-modules
17- uses : actions/cache@main
16+ uses : actions/cache@v2
1817 with :
1918 path : node_modules
20- key : node_modules-${{ hashFiles('package-lock.json') }}
19+ key : node_modules-deploy- ${{ hashFiles('package-lock.json') }}
2120
22- - name : Install node_modules
21+ - name : Install node modules
2322 if : steps.cache-node-modules.outputs.cache-hit != 'true'
2423 run : npm install
2524
You can’t perform that action at this time.
0 commit comments