summaryrefslogtreecommitdiffstats
path: root/.github/workflows/node.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/node.yml')
-rw-r--r--.github/workflows/node.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index 9ebed785..9150d1f1 100644
--- a/.github/workflows/node.yml
+++ b/.github/workflows/node.yml
@@ -13,6 +13,9 @@ on:
- master
- stable*
+permissions:
+ contents: read
+
jobs:
build:
runs-on: ubuntu-latest
@@ -41,3 +44,13 @@ jobs:
run: |
npm ci
npm run build --if-present
+
+ - name: Check webpack build changes
+ run: |
+ bash -c "[[ ! \"`git status --porcelain `\" ]] || exit 1"
+
+ - name: Show changes on failure
+ if: failure()
+ run: |
+ git status
+ git --no-pager diff