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 }}
73
-
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
34
+
node-version-file: 'package.json'
74
35
75
36
- name: Install dependencies & build
76
37
env:
@@ -79,29 +40,3 @@ jobs:
79
40
run: |
80
41
npm ci
81
42
npm run build --if-present
82
-
83
-
- name: Check webpack build changes
84
-
run: |
85
-
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
86
-
87
-
- name: Show changes on failure
88
-
if: failure()
89
-
run: |
90
-
git status
91
-
git --no-pager diff
92
-
exit 1 # make it red to grab attention
93
-
94
-
summary:
95
-
permissions:
96
-
contents: none
97
-
runs-on: ubuntu-latest
98
-
needs: [changes, build]
99
-
100
-
if: always()
101
-
102
-
# This is the summary, we just avoid to rename it so that branch protection rules still match
103
-
name: node
104
-
105
-
steps:
106
-
- name: Summary status
107
-
run: if ${{ needs.changes.outputs.src != 'false' && needs.build.result != 'success' }}; then exit 1; fi
0 commit comments