File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Node.js CI
2
2
3
- on : [ push, pull_request ]
3
+ on :
4
+ pull_request :
5
+ branches : [ master ]
6
+ types : [ opened, synchronize, closed ]
7
+ push :
8
+ branches : [ master ]
4
9
5
10
jobs :
6
11
build :
@@ -14,25 +19,13 @@ jobs:
14
19
- name : Checkout
15
20
uses : actions/checkout@v2
16
21
17
- - name : Determine Yarn Cache Path
18
- id : yarn-cache-dir-path
19
- run : echo "::set-output name=dir::$(yarn cache dir)"
20
-
21
- - uses : actions/cache@v1
22
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
23
- with :
24
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
25
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26
- restore-keys : |
27
- ${{ runner.os }}-yarn-
28
-
29
22
- name : Use Node.js ${{ matrix.node-version }}
30
23
uses : actions/setup-node@v1
31
24
with :
32
25
node-version : ${{ matrix.node-version }}
33
26
34
- - name : Install Packages
35
- run : yarn install --frozen-lockfile
27
+ - name : Install
28
+ run : yarn run clean:all && yarn install --frozen-lockfile
36
29
37
30
- name : Build
38
31
run : yarn build
You can’t perform that action at this time.
0 commit comments