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 }}'
74
-
75
-
- name: Validate package-lock.json # See https://github.com/npm/cli/issues/4460
76
-
run: |
77
-
npm i -g npm-package-lock-add-resolved@1.1.4
78
-
npm-package-lock-add-resolved
79
-
git --no-pager diff --exit-code
80
-
81
-
- name: Install dependencies & build
82
-
env:
83
-
CYPRESS_INSTALL_BINARY: 0
84
-
PUPPETEER_SKIP_DOWNLOAD: true
85
-
run: |
86
-
npm ci
87
-
npm run build --if-present
88
-
89
-
- name: Check build changes
90
-
run: |
91
-
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
92
-
93
-
- name: Show changes on failure
94
-
if: failure()
95
-
run: |
96
-
git status
97
-
git --no-pager diff
98
-
exit 1 # make it red to grab attention
99
-
100
23
summary:
101
-
permissions:
102
-
contents: none
103
24
runs-on: ubuntu-latest-low
104
-
needs: [changes, build]
105
-
106
25
if: always()
107
26
108
27
# This is the summary, we just avoid to rename it so that branch protection rules still match
109
28
name: node
110
29
111
30
steps:
112
-
- name: Summary status
113
-
run: if ${{ needs.changes.outputs.src != 'false' && needs.build.result != 'success' }}; then exit 1; fi
31
+
- name: No-op please switch to npm-build.yml
32
+
run: echo "The workflow has been renamed, please switch to npm-build.yml from organization templates"; exit 1;
0 commit comments