-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5876 from nextcloud/feat/workflow-auto-update
Updating node.yml workflow from template
- Loading branch information
Showing
1 changed file
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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: | | ||
|