From 9ed07f75032e0f9310038a0671a5081ea63abf15 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 22 Jun 2025 08:57:47 +0200 Subject: [PATCH 1/2] chore(workflows): update npm-audit-fix Signed-off-by: Max --- .github/workflows/npm-audit-fix.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-audit-fix.yml b/.github/workflows/npm-audit-fix.yml index 7e7fe1dabc6..2f804dc1846 100644 --- a/.github/workflows/npm-audit-fix.yml +++ b/.github/workflows/npm-audit-fix.yml @@ -24,7 +24,10 @@ jobs: strategy: fail-fast: false matrix: - branches: ['main', 'master', 'stable31', 'stable30'] + branches: + - ${{ github.event.repository.default_branch }} + - 'stable31' + - 'stable30' name: npm-audit-fix-${{ matrix.branches }} From c253378969e08dc10727653547ed91f590fad507 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 22 Jun 2025 08:59:21 +0200 Subject: [PATCH 2/2] chore(workflows): no build in npm-audit-fix We build on the integration branch - not in PRs I wonder if we should rename our `build` script entry in package.json instead as that would allow using the original workflow. Signed-off-by: Max --- .github/workflows/npm-audit-fix.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/npm-audit-fix.yml b/.github/workflows/npm-audit-fix.yml index 2f804dc1846..1b2d06ae9e0 100644 --- a/.github/workflows/npm-audit-fix.yml +++ b/.github/workflows/npm-audit-fix.yml @@ -59,13 +59,12 @@ jobs: id: npm-audit uses: nextcloud-libraries/npm-audit-action@1b1728b2b4a7a78d69de65608efcf4db0e3e42d0 # v0.2.0 - - name: Run npm ci and npm run build + - name: Run npm ci if: steps.checkout.outcome == 'success' env: CYPRESS_INSTALL_BINARY: 0 run: | npm ci - npm run build --if-present - name: Create Pull Request if: steps.checkout.outcome == 'success'