Skip to content

Commit

Permalink
Merge pull request #5876 from nextcloud/feat/workflow-auto-update
Browse files Browse the repository at this point in the history
Updating node.yml workflow from template
  • Loading branch information
nickvergessen authored Jun 25, 2021
2 parents 12ec203 + 002277d commit 5f71df8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -16,13 +21,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up node
- name: Read package.json node and npm engines version
uses: skjnldsv/[email protected]
id: package-engines-versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'

- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
with:
node-version: 14
node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }}

- name: Set up npm7
run: npm i -g npm@7
- name: Set up npm ${{ steps.package-engines-versions.outputs.npmVersion }}
run: npm i -g npm@"${{ steps.package-engines-versions.outputs.npmVersion }}"

- name: Install dependencies & build
run: |
Expand Down

0 comments on commit 5f71df8

Please sign in to comment.