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

github.com/nextcloud/logreader.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:24 +0300
committerNextcloud bot <bot@nextcloud.com>2021-07-24 10:34:24 +0300
commit596dd134ce2c01fffb623d54536135ed888fcc00 (patch)
tree3d7e9acc85cad13fd2e966c87e31c17b02b8f4d1 /.github
parentd5ca976109f1fab3d2df3e56404ddfc8f9e3d1a5 (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.yml31
1 files changed, 25 insertions, 6 deletions
diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml
index 8a53def..4b20eb5 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:
@@ -13,15 +18,23 @@ jobs:
name: node
steps:
- - uses: actions/checkout@v2
+ - 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
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
- node-version: 14
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
- - name: Set up npm7
- run: npm i -g npm@7
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
- name: Install dependencies & build
run: |
@@ -30,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