summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2021-07-24 07:34:23 +0000
committerNextcloud bot <bot@nextcloud.com>2021-07-24 07:34:23 +0000
commit0a6079e784e4c1f7ea00db6e73a1bcbe82968493 (patch)
treeef7c15b958a54d60c765bbbf5d1dddae453cfe9d /.github
parent3bdf5149f42bb26d1f7d0eb3df1f158994ddafff (diff)
Updating node.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/node.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index aebed2cb..4b20eb5e 100644
--- a/.github/workflows/node.yml
+++ b/.github/workflows/node.yml
@@ -23,18 +23,18 @@ jobs:
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.1
- id: package-engines-versions
+ id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- - name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
- node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }}
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
- - name: Set up npm ${{ steps.package-engines-versions.outputs.npmVersion }}
- run: npm i -g npm@"${{ steps.package-engines-versions.outputs.npmVersion }}"
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install dependencies & build
run: |
@@ -43,4 +43,10 @@ jobs:
- name: Check webpack build changes
run: |
- bash -c "[[ ! \"`git status --porcelain `\" ]] || ( echo 'Uncommited changes in webpack build' && git status && exit 1 )"
+ bash -c "[[ ! \"`git status --porcelain `\" ]] || exit 1"
+
+ - name: Show changes on failure
+ if: failure()
+ run: |
+ git status
+ git --no-pager diff