File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change 99 build-and-deploy :
1010 runs-on : ubuntu-latest
1111 steps :
12+ - name : checkout
1213 - uses : actions/checkout@v2
13- - name : Get yarn cache directory path
14- id : yarn-cache-dir-path
15- run : echo "::set-output name=dir::$(yarn cache dir)"
16- - name : Cache yarn cache
17- uses : actions/cache@v2
18- id : cache-yarn-cache
19- with :
20- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
21- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22- restore-keys : |
23- ${{ runner.os }}-yarn-
24- - name : Cache node_modules
25- id : cache-node-modules
26- uses : actions/cache@v2
27- with :
28- path : node_modules
29- key : ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
30- restore-keys : |
31- ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
32- - run : yarn --ignore-engines
33- if : |
34- steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
35- steps.cache-node-modules.outputs.cache-hit != 'true'
14+
3615 - name : build
37- run : npm run build
16+ run : |
17+ npm install
18+ npm run build
3819
3920 - name : Deploy
4021 uses : peaceiris/actions-gh-pages@v3
You can’t perform that action at this time.
0 commit comments