File tree 1 file changed +6
-14
lines changed
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,16 @@ jobs:
10
10
frontend-build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
+ # Checks-out
13
14
- uses : actions/checkout@v2
14
- # yarn cache
15
- - name : Get yarn cache directory path
16
- id : yarn-cache-dir-path
17
- run : echo "::set-output name=dir::$(yarn cache dir)"
18
- - uses : actions/cache@v2
19
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
15
+ # use node.js
16
+ - uses : actions/setup-node@v2
20
17
with :
21
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
22
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23
- restore-keys : |
24
- ${{ runner.os }}-yarn-
25
- # yarn build
26
-
18
+ node-version : ' 14'
27
19
- run : |
28
20
cd ./web
29
- yarn install
30
- yarn run build
21
+ npm install
22
+ npm run build
31
23
# upload
32
24
- name : Upload frontend build
33
25
uses : actions/upload-artifact@v2
You can’t perform that action at this time.
0 commit comments