diff options
author | Nextcloud bot <bot@nextcloud.com> | 2021-07-24 10:45:16 +0300 |
---|---|---|
committer | Nextcloud bot <bot@nextcloud.com> | 2021-07-24 10:45:16 +0300 |
commit | 03b59a02966975c588f3e1007e1470b42c00b4c0 (patch) | |
tree | d84f19f4301fbfd5f3db05e8164b7749cb171377 /.github | |
parent | 15b29994cc2581ca675f284e733968ab2364e598 (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 |