Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/maps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2021-07-24 10:34:26 +0300
committerNextcloud bot <bot@nextcloud.com>2021-07-24 10:34:26 +0300
commit5eeaabfa8699112a5e23241cc767b3447cfdf063 (patch)
tree95145eaac4a78147fa20d42116d65c85a2ba84f9
parentbac4047b3412f452e010c5e9301d20dc2e195c5a (diff)
Updating node.yml workflow from templatefeat/workflow-auto-update
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
-rw-r--r--.github/workflows/node.yml53
1 files changed, 39 insertions, 14 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index 2a2dd3ed..4b20eb5e 100644
--- a/.github/workflows/node.yml
+++ b/.github/workflows/node.yml
@@ -1,3 +1,8 @@
+# This workflow is provided via the organization template repository
+#
+# https://github.com/nextcloud/.github
+# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
+
name: Node
on:
@@ -5,23 +10,43 @@ on:
push:
branches:
- master
+ - stable*
jobs:
build:
-
runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [12.x]
-
+ name: node
steps:
- - uses: actions/checkout@v2
- - name: Use node ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: Install dependencies & build
- run: |
- npm ci
- npm run build --if-present
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Read package.json node and npm engines version
+ uses: skjnldsv/read-package-engines-version-actions@v1.1
+ id: versions
+ with:
+ fallbackNode: '^12'
+ fallbackNpm: '^6'
+
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
+ uses: actions/setup-node@v2
+ with:
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
+
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
+
+ - name: Install dependencies & build
+ 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