diff options
author | Nextcloud bot <bot@nextcloud.com> | 2021-07-24 10:49:02 +0300 |
---|---|---|
committer | Nextcloud bot <bot@nextcloud.com> | 2021-07-24 10:49:02 +0300 |
commit | 397f3617639e422b2800d8e5c8e7833874732d3b (patch) | |
tree | 92f1c284013f1e0a770752ba91dee6a8b7a373f6 /.github | |
parent | e41c7e1ec495556cc7b6cc775ccd95131ac1be91 (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.yml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index aebed2cbb..4b20eb5ed 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 |