Skip to content

Commit 8b0f52e

Browse files
committed
ci: update node.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
1 parent 5853d8f commit 8b0f52e

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/node.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
fallbackNpm: '^10'
6666

6767
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
68-
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
68+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
6969
with:
7070
node-version: ${{ steps.versions.outputs.nodeVersion }}
7171

@@ -79,13 +79,17 @@ jobs:
7979
run: |
8080
npm ci
8181
npm run build --if-present
82-
npm run stats --if-present
8382
84-
# Upload webpack-stats.json to use on relative-ci.yaml workflow
85-
- name: Upload webpack stats artifact
86-
uses: relative-ci/agent-upload-artifact-action@a2b5741b4f7e6a989c84ec1a3059696b23c152e5 # v2.0.0
87-
with:
88-
webpackStatsFile: ./webpack-stats.json
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
8993
9094
summary:
9195
permissions:

0 commit comments

Comments
 (0)