Skip to content

Commit 87a0995

Browse files
author
Carl Schwan
committed
fixup! chore: Update workflows and use composer-bin
1 parent 7c0f6d5 commit 87a0995

2 files changed

Lines changed: 17 additions & 42 deletions

File tree

.github/workflows/node.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# https://github.com/nextcloud/.github
44
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
58

69
name: Node
710

@@ -16,13 +19,16 @@ concurrency:
1619

1720
jobs:
1821
changes:
19-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-latest-low
23+
permissions:
24+
contents: read
25+
pull-requests: read
2026

2127
outputs:
2228
src: ${{ steps.changes.outputs.src}}
2329

2430
steps:
25-
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
31+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2632
id: changes
2733
continue-on-error: true
2834
with:
@@ -47,22 +53,24 @@ jobs:
4753
name: NPM build
4854
steps:
4955
- name: Checkout
50-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
56+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
57+
with:
58+
persist-credentials: false
5159

5260
- name: Read package.json node and npm engines version
53-
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
61+
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
5462
id: versions
5563
with:
5664
fallbackNode: '^20'
57-
fallbackNpm: '^9'
65+
fallbackNpm: '^10'
5866

5967
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
60-
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v3
68+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
6169
with:
6270
node-version: ${{ steps.versions.outputs.nodeVersion }}
6371

6472
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
65-
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
73+
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
6674

6775
- name: Install dependencies & build
6876
env:
@@ -72,7 +80,7 @@ jobs:
7280
npm ci
7381
npm run build --if-present
7482
75-
- name: Check webpack build changes
83+
- name: Check build changes
7684
run: |
7785
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
7886
@@ -86,7 +94,7 @@ jobs:
8694
summary:
8795
permissions:
8896
contents: none
89-
runs-on: ubuntu-latest
97+
runs-on: ubuntu-latest-low
9098
needs: [changes, build]
9199

92100
if: always()

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)