Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
7c100f2
Remove obsolete React Native mobile workflows.
desrosj Sep 11, 2026
28dedbc
Remove the trunk-only Storybook GitHub Pages deploy workflow.
desrosj Sep 11, 2026
6e30f92
Remove trunk-only changelog verification workflows.
desrosj Sep 11, 2026
2e40f15
Remove trunk-only WordPress.org plugin repo publishing workflows.
desrosj Sep 11, 2026
b1ec7c5
Remove trunk-only release automation workflow.
desrosj Sep 11, 2026
c0fff19
Remove trunk-only issue management workflows.
desrosj Sep 11, 2026
2d93076
`pull-request-automation` is not used outside of trunk.
desrosj Sep 11, 2026
80020a7
Restore `pull-request-automation.yml`: `pull_request_target` has no b…
desrosj Sep 14, 2026
e11e87a
Remove the performance tests workflow.
desrosj Oct 7, 2026
d79215c
Reference trunk's reusable workflow-lint job instead of a local copy.
desrosj Sep 11, 2026
c9fde27
Remove unintended change.
desrosj Sep 14, 2026
36be9a0
Remove invalid `type` for composite action input.
desrosj Sep 14, 2026
60af62b
Disable npm caching in workflows that publish built assets.
desrosj Sep 22, 2026
4cc7fd8
Add a `cache` input to the `setup-node` composite action.
desrosj Oct 7, 2026
70f9877
Update actions/checkout to v7.0.1.
desrosj Sep 11, 2026
c1d653d
Update actions/setup-node to v7.0.0.
desrosj Sep 11, 2026
1da32e1
Update actions/cache to v6.1.0.
desrosj Sep 11, 2026
49f9389
Update actions/upload-artifact to v7.0.1.
desrosj Sep 11, 2026
ff157c0
Update shivammathur/setup-php to v2.37.2.
desrosj Sep 11, 2026
6617039
Update preactjs/compressed-size-action to v2.10.0.
desrosj Sep 11, 2026
a98af67
Update actions/checkout to v7.0.1 in `publish-npm-packages.yml`.
desrosj Sep 11, 2026
8fdd504
Update actions/setup-node to v7.0.0 in `publish-npm-packages.yml`.
desrosj Sep 11, 2026
8703b0f
Bump docker/login-action to v4.6.0.
desrosj Sep 11, 2026
a350388
Bump oras-project/setup-oras to v2.0.1.
desrosj Sep 11, 2026
ecced2c
Bump actions/labeler to v7.0.0.
desrosj Sep 11, 2026
498e9ca
Bump actions/github-script to v9.0.0.
desrosj Sep 11, 2026
5e9cd7e
Fix mismatched version comments flagged by zizmor.
desrosj Sep 11, 2026
1b05866
Fix shivammathur/setup-php version comment to use the stable tag.
desrosj Sep 11, 2026
e52f830
Update actions/checkout to v7.0.1 in `storybook-check.yml`.
desrosj Sep 11, 2026
e2a0eda
Bump `mheap/github-action-required-labels` to v5.6.0.
desrosj Sep 11, 2026
f1c4fe5
Widen push branch filters on GitHub Actions workflows
desrosj Sep 11, 2026
5aabdc9
Remove the `push` trigger from `pull-request-automation.yml`: its pus…
desrosj Sep 14, 2026
9ae25dc
Only run PR label enforcement on open pull requests.
desrosj Sep 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,21 @@ inputs:
node-version:
description: 'Optional. The Node.js version to use. When not specified, the version specified in .nvmrc will be used.'
required: false
type: string
cache:
description: 'Optional. Whether to restore and save the node_modules and npm caches. Set to false in workflows that publish built assets, so a poisoned cache cannot reach a release.'
required: false
default: 'true'

runs:
using: 'composite'
steps:
- name: Use desired version of Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: ${{ inputs.node-version == '' && '.nvmrc' || '' }}
node-version: ${{ inputs.node-version }}
check-latest: true
cache: npm
cache: ${{ inputs.cache == 'true' && 'npm' || '' }}

- name: Get Node.js and npm version
id: node-version
Expand All @@ -25,7 +28,8 @@ runs:

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
if: ${{ inputs.cache == 'true' }}
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: '**/node_modules'
key: node_modules-${{ runner.os }}-${{ runner.arch }}-${{ steps.node-version.outputs.NODE_VERSION }}-${{ hashFiles('package-lock.json', 'patches/**') }}
Expand All @@ -36,7 +40,7 @@ runs:
npm ci
shell: bash
- name: Upload npm logs as an artifact on failure
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: failure()
with:
name: npm-logs
Expand All @@ -45,7 +49,7 @@ runs:
# On cache hit, we run the post-install script to match the native `npm ci` behavior.
# An example of this is to patch `node_modules` using patch-package.
- name: Post-install
if: ${{ steps.cache-node_modules.outputs.cache-hit == 'true' }}
if: ${{ inputs.cache == 'true' && steps.cache-node_modules.outputs.cache-hit == 'true' }}
run: |
# Run the post-install script for the root project.
npm run postinstall
Expand Down
30 changes: 17 additions & 13 deletions .github/workflows/build-plugin-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ on:
push:
branches:
- trunk
- 'release/**'
- 'wp/**'
- 'release/[0-9]+.[0-9]'
- 'wp/[0-9]+.[0-9]'
- wp/latest
- wp/next
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -81,7 +83,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ secrets.GUTENBERG_TOKEN }}
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
Expand Down Expand Up @@ -199,17 +201,18 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.bump-version.outputs.release_branch || github.ref }}
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Use desired version of Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.nvmrc'
check-latest: true
package-manager-cache: false

- name: Configure build for wordpress-develop
if: ${{ ! matrix.IS_GUTENBERG_PLUGIN }}
Expand All @@ -223,7 +226,7 @@ jobs:
IS_WORDPRESS_CORE: ${{ ! matrix.IS_GUTENBERG_PLUGIN }}

- name: Upload artifact
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: gutenberg-${{ ! matrix.IS_GUTENBERG_PLUGIN && 'wordpress-develop' || 'plugin' }}
path: ./gutenberg.zip
Expand All @@ -246,7 +249,7 @@ jobs:

- name: Upload release notes artifact
if: ${{ matrix.IS_GUTENBERG_PLUGIN && needs.bump-version.outputs.new_version }}
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: release-notes
path: ./release-notes.txt
Expand Down Expand Up @@ -293,7 +296,7 @@ jobs:
run: tar -czf ${{ runner.temp }}/gutenberg.tar.gz . && mv ${{ runner.temp }}/gutenberg.tar.gz .

- name: Login to GitHub Container Registry
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -302,7 +305,7 @@ jobs:
# OCI Registry As Storage (ORAS) provides a way to push and pull non-image, generic artifacts (.gz files,
# for example) to container registries such as GitHub Container Registry.
- name: Setup ORAS
uses: oras-project/setup-oras@38de303aac69abb66f3e6255b7198bff35f323e3 # v2.0.0
uses: oras-project/setup-oras@1d808f7d7f6995cc68b7bf507bfe5c5446e1dc9d # v2.0.1

# The owner/repository is hard-coded because capital letters are not allowed when publishing to GitHub
# Container Registry. The organization name is WordPress, so ${{ github.repository }} causes an error.
Expand Down Expand Up @@ -357,7 +360,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 2
ref: ${{ needs.bump-version.outputs.release_branch }}
Expand Down Expand Up @@ -458,15 +461,15 @@ jobs:
if: ${{ endsWith( needs.bump-version.outputs.new_version, '-rc.1' ) }}
steps:
- name: Checkout (for CLI)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: main
ref: trunk
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Checkout (for publishing)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: publish
# Later, we switch this branch in the script that publishes packages.
Expand All @@ -482,11 +485,12 @@ jobs:
git config user.email gutenberg@wordpress.org

- name: Setup Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: 'main/.nvmrc'
registry-url: 'https://registry.npmjs.org'
check-latest: true
package-manager-cache: false

- name: Publish packages to npm ("latest" dist-tag)
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@ jobs:
pull-requests: write

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
persist-credentials: false

- name: Use desired version of Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: '.nvmrc'
check-latest: true
cache: npm

- uses: preactjs/compressed-size-action@946a292cd35bd1088e0d7eb92b69d1a8d5b5d76a # v2.8.0
- uses: preactjs/compressed-size-action@f322c295dde06a1cb7ccaef105732dd8a726d1d9 # 2.10.0
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: '{build/scripts/**/*.min.js,build/styles/**/*.css,build/modules/**/*.min.js}'
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/check-backport-changelog.yml

This file was deleted.

79 changes: 0 additions & 79 deletions .github/workflows/check-components-changelog.yml

This file was deleted.

Loading
Loading