From 3ce0a7eb28fcde55d55ba57ba181858e4b28c829 Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Fri, 22 May 2026 10:47:43 -0400 Subject: [PATCH] ci: bump actions to v5 and drop unused notify-discord workflow Pins actions/checkout, actions/setup-node, actions/cache, and actions/upload-artifact to v5 across all workflows and the cache-restore composite action ahead of the 2026-06-02 Node 20 runtime cutover. Deletes notify-discord.yml. It triggered on push:tags but had zero historical runs (gh run list --workflow=notify-discord.yml -> []), because git push --tags from npm-publish.yml is authored by GITHUB_TOKEN and GitHub suppresses downstream workflow events for GITHUB_TOKEN-authored events. Since the workflow has never fired, nothing currently depends on it; remove rather than replace. --- .github/actions/cache-restore/action.yml | 4 +- .github/workflows/check-packages.yml | 4 +- .../workflows/e2e-next-faustwp-example.yml | 4 +- .github/workflows/e2e-nightly-build.yml | 4 +- .github/workflows/lint-plugin.yml | 2 +- .github/workflows/nextjs-bundle-analysis.yml | 8 ++-- .github/workflows/node-setup.yml | 2 +- .github/workflows/notify-discord.yml | 38 ------------------- .github/workflows/npm-publish.yml | 4 +- .github/workflows/release-packages.yml | 4 +- .github/workflows/sonarqube-scan.yml | 2 +- .github/workflows/unit-test-packages.yml | 4 +- .../workflows/unit-test-plugin-nightly.yml | 2 +- .github/workflows/unit-test-plugin.yml | 2 +- 14 files changed, 23 insertions(+), 61 deletions(-) delete mode 100644 .github/workflows/notify-discord.yml diff --git a/.github/actions/cache-restore/action.yml b/.github/actions/cache-restore/action.yml index 88ba0132b..6976a66f3 100644 --- a/.github/actions/cache-restore/action.yml +++ b/.github/actions/cache-restore/action.yml @@ -16,13 +16,13 @@ runs: steps: # Setup a Node environment given a node version - name: Use Node.js ${{ inputs.node-version }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ inputs.node-version }} - name: Cache Node Modules id: node-cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | **/node_modules diff --git a/.github/workflows/check-packages.yml b/.github/workflows/check-packages.yml index 378eb1274..69fcbbb2f 100644 --- a/.github/workflows/check-packages.yml +++ b/.github/workflows/check-packages.yml @@ -23,7 +23,7 @@ jobs: needs: [setup-node] steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Node.js uses: ./.github/actions/cache-restore id: cache-node-modules @@ -38,7 +38,7 @@ jobs: needs: [setup-node] steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Node.js uses: ./.github/actions/cache-restore id: cache-node-modules diff --git a/.github/workflows/e2e-next-faustwp-example.yml b/.github/workflows/e2e-next-faustwp-example.yml index 1242fd5e0..4ba31fe2e 100644 --- a/.github/workflows/e2e-next-faustwp-example.yml +++ b/.github/workflows/e2e-next-faustwp-example.yml @@ -20,9 +20,9 @@ jobs: working-directory: ./ steps: - name: checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node }} # Get the PR branch so we can pull the correct Next.js example path diff --git a/.github/workflows/e2e-nightly-build.yml b/.github/workflows/e2e-nightly-build.yml index 8483c42fa..0c720432b 100644 --- a/.github/workflows/e2e-nightly-build.yml +++ b/.github/workflows/e2e-nightly-build.yml @@ -18,10 +18,10 @@ jobs: working-directory: ./ steps: - name: checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node }} diff --git a/.github/workflows/lint-plugin.yml b/.github/workflows/lint-plugin.yml index 7baacf145..81a0dbec4 100644 --- a/.github/workflows/lint-plugin.yml +++ b/.github/workflows/lint-plugin.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index a6f5c968d..053bd33db 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -30,10 +30,10 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Install Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 20 @@ -66,7 +66,7 @@ jobs: npm pkg set nextBundleAnalysis.budget=358400 nextBundleAnalysis.budgetPercentIncreaseRed=20 nextBundleAnalysis.showDetails=true --json - name: Restore next build - uses: actions/cache@v4 + uses: actions/cache@v5 id: restore-build-cache env: cache-name: cache-next-build @@ -88,7 +88,7 @@ jobs: run: npx -p nextjs-bundle-analysis report - name: Upload bundle analysis report for this PR - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: bundle path: ${{ matrix.next-dir }}/.next/analyze/__bundle_analysis.json diff --git a/.github/workflows/node-setup.yml b/.github/workflows/node-setup.yml index bab5a0cb3..517a0803d 100644 --- a/.github/workflows/node-setup.yml +++ b/.github/workflows/node-setup.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Node.js ${{ inputs.node-version }} uses: ./.github/actions/cache-restore diff --git a/.github/workflows/notify-discord.yml b/.github/workflows/notify-discord.yml deleted file mode 100644 index 8a2f490fe..000000000 --- a/.github/workflows/notify-discord.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Notify Discord - -on: - push: - tags: - - '@faustwp/wordpress-plugin@*' - - '@faustwp/core@*' - - '@faustwp/cli@*' - - '@faustwp/blocks@*' - # Test this action without creating a full release. - - '@faustwp/test@*' - -jobs: - release_plugin: - runs-on: ubuntu-latest - steps: - - name: Discord Notification - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} - DISCORD_USERNAME: Faust.js Bot - DISCORD_AVATAR: https://pbs.twimg.com/profile_images/1658588429385601025/QZhc7IAR_400x400.png - DISCORD_EMBEDS: | - [ - { - "title": "✨", - "description": "A new release is now available!", - "color": 10365439, - "fields": [ - { - "name": "${{ github.ref_name }}", - "value": "See what's new! [View changes](https://github.com/wpengine/faustjs/releases/tag/${{ github.ref_name }})" - } - ] - } - ] - uses: Ilshidur/action-discord@0.3.2 - with: - args: '${{ github.ref_name }} has been released!' diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2ff896982..d31455eea 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -27,12 +27,12 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: fetch-depth: 0 - name: Setup Node.js 22.x - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 22.x registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 07e527d7e..839af6c2c 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -18,13 +18,13 @@ jobs: has-changesets: ${{ steps.changesets.outputs.hasChangesets }} steps: - name: Checkout Repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 - name: Setup Node.js 22.x - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: 22.x diff --git a/.github/workflows/sonarqube-scan.yml b/.github/workflows/sonarqube-scan.yml index 7dc3d8220..70ebf207a 100644 --- a/.github/workflows/sonarqube-scan.yml +++ b/.github/workflows/sonarqube-scan.yml @@ -14,7 +14,7 @@ jobs: if: github.repository_owner == 'wpengine' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 diff --git a/.github/workflows/unit-test-packages.yml b/.github/workflows/unit-test-packages.yml index cbc378c83..a8a3ad2bf 100644 --- a/.github/workflows/unit-test-packages.yml +++ b/.github/workflows/unit-test-packages.yml @@ -19,9 +19,9 @@ jobs: pull-requests: write runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Setup Node.js ${{ matrix.node }} - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: ${{ matrix.node }} diff --git a/.github/workflows/unit-test-plugin-nightly.yml b/.github/workflows/unit-test-plugin-nightly.yml index 692a6c914..85c2e3a5d 100644 --- a/.github/workflows/unit-test-plugin-nightly.yml +++ b/.github/workflows/unit-test-plugin-nightly.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Create Docker Containers working-directory: ./plugins/faustwp diff --git a/.github/workflows/unit-test-plugin.yml b/.github/workflows/unit-test-plugin.yml index f899a67c8..e37287b9b 100644 --- a/.github/workflows/unit-test-plugin.yml +++ b/.github/workflows/unit-test-plugin.yml @@ -16,7 +16,7 @@ jobs: wordpress: [ '6.9', '6.8', '6.7', '6.6', '6.5', '6.4', '6.3' ] steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Create Docker Containers env: