You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yaml
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,12 @@ jobs:
13
13
name: Build
14
14
runs-on: ubuntu-latest
15
15
steps:
16
-
- uses: actions/checkout@v1
16
+
- uses: actions/checkout@v3
17
17
- name: Set up Node.js
18
-
uses: actions/setup-node@v1
18
+
uses: actions/setup-node@v3
19
19
with:
20
20
node-version: ${{ env.node_version }}
21
+
cache: yarn
21
22
22
23
- name: yarn install
23
24
run: yarn install
@@ -32,12 +33,13 @@ jobs:
32
33
name: Audit
33
34
runs-on: ubuntu-latest
34
35
steps:
35
-
- uses: actions/checkout@v2
36
+
- uses: actions/checkout@v3
36
37
37
38
- name: Set up Node.js
38
-
uses: actions/setup-node@v1
39
+
uses: actions/setup-node@v3
39
40
with:
40
41
node-version: ${{ env.node_version }}
42
+
cache: yarn
41
43
42
44
- name: yarn audit
43
45
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found
0 commit comments