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/test.yml
+27-29Lines changed: 27 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@
19
19
with:
20
20
node-version: ${{ env.node_version }}
21
21
22
-
- name: npm install
23
-
run: npm install
22
+
- name: yarn install
23
+
run: yarn install
24
24
25
-
- name: npm build
26
-
run: npm build
25
+
- name: yarn build
26
+
run: yarn build
27
27
28
-
- name: npm run pack
29
-
run: npm run package
28
+
- name: yarn run pack
29
+
run: yarn run pack
30
30
31
31
audit:
32
32
name: Audit
@@ -39,8 +39,8 @@
39
39
with:
40
40
node-version: ${{ env.node_version }}
41
41
42
-
- name: npm audit
43
-
run: npm audit --audit-level=critical
42
+
- name: yarn audit
43
+
run: yarn audit --levelcritical [[ $? -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