|
|
|
@ -2,11 +2,13 @@
|
|
|
|
|
#
|
|
|
|
|
# https://github.com/nextcloud/.github
|
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
|
|
|
|
#
|
|
|
|
|
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
|
|
name: Node
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
pull_request:
|
|
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
|
contents: read
|
|
|
|
@ -31,10 +33,10 @@ jobs:
|
|
|
|
|
src:
|
|
|
|
|
- '.github/workflows/**'
|
|
|
|
|
- '**/src/**'
|
|
|
|
|
- '**/appinfo/info.xml'
|
|
|
|
|
- 'apps/*/appinfo/info.xml'
|
|
|
|
|
- 'package.json'
|
|
|
|
|
- 'package-lock.json'
|
|
|
|
|
- 'tsconfig.json'
|
|
|
|
|
- '**/tsconfig.json'
|
|
|
|
|
- '**.js'
|
|
|
|
|
- '**.ts'
|
|
|
|
|
- '**.vue'
|
|
|
|
@ -48,14 +50,14 @@ jobs:
|
|
|
|
|
name: NPM build
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v3.6.0
|
|
|
|
|
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
|
|
|
|
|
|
|
|
|
- name: Read package.json node and npm engines version
|
|
|
|
|
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
|
|
|
|
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
|
|
|
|
id: versions
|
|
|
|
|
with:
|
|
|
|
|
fallbackNode: '^20'
|
|
|
|
|
fallbackNpm: '^9'
|
|
|
|
|
fallbackNpm: '^10'
|
|
|
|
|
|
|
|
|
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
|
|
|