Skip to content

Commit cf43d38

Browse files
authored
feat: update php, wp, gh actions, plugins #321
2 parents 03dbf6f + d6995f4 commit cf43d38

12 files changed

Lines changed: 177 additions & 168 deletions

.github/workflows/cleanup-release-branch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.event.pull_request.merged == true
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
with:
2626
fetch-depth: 0
2727
token: ${{ secrets.GITHUB_TOKEN }} # Do not move to a variable
@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Get release version from existing draft
4747
id: get-version
48-
uses: actions/github-script@v7
48+
uses: actions/github-script@v8
4949
with:
5050
script: |
5151
try {
@@ -88,7 +88,7 @@ jobs:
8888
8989
- name: Update GitHub release
9090
id: update-release
91-
uses: actions/github-script@v7
91+
uses: actions/github-script@v8
9292
with:
9393
script: |
9494
const version = "${{ steps.get-version.outputs.version }}";

.github/workflows/create-production-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-22.04
2424
steps:
2525
- name: Checkout repository
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727
with:
2828
fetch-depth: 0
2929

@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: Find GitHub release draft
8181
id: find-release
82-
uses: actions/github-script@v7
82+
uses: actions/github-script@v8
8383
with:
8484
script: |
8585
try {
@@ -110,7 +110,7 @@ jobs:
110110
111111
- name: Create production PR
112112
id: create-pr
113-
uses: actions/github-script@v7
113+
uses: actions/github-script@v8
114114
env:
115115
RELEASE_NOTES: ${{ inputs.release_notes }}
116116
COMMIT_COUNT: ${{ steps.release-info.outputs.commit_count }}

.github/workflows/create-release-branch.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-22.04
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0
2828
token: ${{ secrets.GITHUB_TOKEN }} # Do not move to a variable
@@ -80,7 +80,7 @@ jobs:
8080
echo "Release branch created/updated from main"
8181
8282
- name: Trigger deployment to release environment
83-
uses: actions/github-script@v7
83+
uses: actions/github-script@v8
8484
continue-on-error: true
8585
with:
8686
script: |
@@ -145,7 +145,7 @@ jobs:
145145
146146
- name: Create GitHub release draft
147147
id: create-release
148-
uses: actions/github-script@v7
148+
uses: actions/github-script@v8
149149
with:
150150
script: |
151151
const releaseBody = `## Release \`${{ steps.version.outputs.version }}\`

.github/workflows/docker-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
packages: write
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626

2727
- name: Check if should publish
2828
id: should-publish

.github/workflows/reset-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
# Log the operation
6060
echo "✅ Valid branch reset operation: ${FROM} → ${TO}"
6161
62-
- uses: actions/checkout@v4
62+
- uses: actions/checkout@v6
6363
with:
6464
fetch-depth: 0 # Fetch all history for all branches
6565
token: ${{ secrets.GITHUB_TOKEN }}
@@ -174,7 +174,7 @@ jobs:
174174
id: reset
175175

176176
- name: Trigger deployment via repository dispatch
177-
uses: actions/github-script@v7
177+
uses: actions/github-script@v8
178178
continue-on-error: true
179179
id: dispatch
180180
with:

.github/workflows/test-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ jobs:
7777
short-sha: ${{ steps.check-deploy.outputs.short-sha }}
7878
display-branch: ${{ steps.check-deploy.outputs.display-branch }}
7979
steps:
80-
- uses: actions/checkout@v4
80+
- uses: actions/checkout@v6
8181
with:
8282
ref: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.branch || github.ref }}
8383

8484
- name: Setup PHP
8585
uses: shivammathur/setup-php@v2
8686
with:
87-
php-version: '8.2'
87+
php-version: '8.3'
8888
tools: composer:v2
8989

9090
- name: Get Composer cache directory
@@ -263,7 +263,7 @@ jobs:
263263
if: needs.test.outputs.should-deploy == 'true'
264264
environment: ${{ needs.test.outputs.environment }}
265265
steps:
266-
- uses: actions/checkout@v4
266+
- uses: actions/checkout@v6
267267
with:
268268
ref: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.branch || github.ref }}
269269

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Site setup, development environment and deploy tooling for [WordPress VIP](https
1616

1717
## Requirements
1818

19-
- PHP 8.2
19+
- PHP 8.3
2020
- [Composer](https://getcomposer.org)
2121
- [Node.js](https://nodejs.org) version 20
2222
- [Docker with Docker Compose](https://docs.docker.com/compose/install/)
@@ -26,7 +26,7 @@ Site setup, development environment and deploy tooling for [WordPress VIP](https
2626

2727
We suggest using [Homebrew](https://brew.sh) on macOS or [Chocolatey](https://chocolatey.org) for Windows to install the project dependencies.
2828

29-
brew install git php@8.2 composer node@20 mkcert nss
29+
brew install git php@8.3 composer node@20 mkcert nss
3030
brew install --cask docker
3131

3232
Once NVM is installed, you can install the required Node.js version from the `.nvmrc` file:
@@ -36,7 +36,7 @@ Once NVM is installed, you can install the required Node.js version from the `.n
3636

3737
### WordPress Compatibility
3838

39-
This theme template is aligned with WordPress 6.8.x package versions.
39+
This theme template is aligned with WordPress 6.9.x package versions.
4040
To update packages to match a different WordPress version:
4141
`npx wp-scripts packages-update --dist-tag=wp-[version] --save`
4242

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"preferred-install": "dist",
2626
"vendor-dir": "plugins/vendor",
2727
"platform": {
28-
"php": "8.2"
28+
"php": "8.3"
2929
},
3030
"allow-plugins": {
3131
"composer/installers": true,
@@ -35,29 +35,29 @@
3535
}
3636
},
3737
"require": {
38-
"php": ">=8.2",
38+
"php": ">=8.3",
3939
"automattic/wpcom-legacy-redirector": "dev-develop",
4040
"composer/installers": "^1|^2.2",
4141
"cweagans/composer-patches": "^1.7",
4242
"xwp/example-theme": "@dev",
4343
"wpackagist-plugin/action-scheduler": "^3.9",
44-
"wpackagist-plugin/safe-svg": "^2.3",
44+
"wpackagist-plugin/safe-svg": "^2.4",
4545
"wpackagist-plugin/wp-crontrol": "^1.19",
46-
"wpackagist-theme/twentytwentyfive": "^1.3"
46+
"wpackagist-theme/twentytwentyfive": "^1.4"
4747
},
4848
"require-dev": {
4949
"automattic/vip-go-mu-plugins": "dev-master",
5050
"automattic/vipwpcs": "^3.0",
51-
"dealerdirect/phpcodesniffer-composer-installer": "^1.1",
52-
"php-stubs/wordpress-stubs": "^6.8",
51+
"dealerdirect/phpcodesniffer-composer-installer": "^1.2",
52+
"php-stubs/wordpress-stubs": "^6.9",
5353
"php-stubs/wp-cli-stubs": "^2.12",
5454
"phpcompatibility/php-compatibility": "^9.3",
5555
"phpcompatibility/phpcompatibility-wp": "^2.1",
5656
"phpunit/phpunit": "^9.6",
57-
"roots/wordpress": "^6.8",
57+
"roots/wordpress": "^6.9",
5858
"szepeviktor/phpstan-wordpress": "^1.3",
5959
"wp-cli/php-cli-tools": "^0.11",
60-
"wp-phpunit/wp-phpunit": "^6.8",
60+
"wp-phpunit/wp-phpunit": "^6.9",
6161
"xwp/wait-for": "^0.0.2",
6262
"yoast/phpunit-polyfills": "^2.0"
6363
},

0 commit comments

Comments
 (0)