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
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
68
-
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
40
+
- name: Set up npm
41
+
run: npm i -g 'npm@${{ steps.versions.outputs.package-manager-version }}'
42
+
43
+
- name: Validate package-lock.json # See https://github.com/npm/cli/issues/4460
44
+
run: |
45
+
npm i -g npm-package-lock-add-resolved@1.1.4
46
+
npm-package-lock-add-resolved
47
+
git --no-pager diff --exit-code
69
48
70
49
- name: Install dependencies & build
71
50
env:
@@ -74,29 +53,3 @@ jobs:
74
53
run: |
75
54
npm ci
76
55
npm run build --if-present
77
-
78
-
- name: Check webpack build changes
79
-
run: |
80
-
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
81
-
82
-
- name: Show changes on failure
83
-
if: failure()
84
-
run: |
85
-
git status
86
-
git --no-pager diff
87
-
exit 1 # make it red to grab attention
88
-
89
-
summary:
90
-
permissions:
91
-
contents: none
92
-
runs-on: ubuntu-latest
93
-
needs: [changes, build]
94
-
95
-
if: always()
96
-
97
-
# This is the summary, we just avoid to rename it so that branch protection rules still match
98
-
name: node
99
-
100
-
steps:
101
-
- name: Summary status
102
-
run: if ${{ needs.changes.outputs.src != 'false' && needs.build.result != 'success' }}; then exit 1; fi
0 commit comments