Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
f3c9da1
Add a workflow for checking and managing built files.
desrosj Feb 5, 2025
f95ca4a
Re-add dependabot for npm.
desrosj Feb 5, 2025
b524992
Merge remote-tracking branch 'upstream/trunk' into trunk
desrosj Mar 4, 2025
84c1f50
Merge remote-tracking branch 'upstream/trunk' into trunk
desrosj Mar 4, 2025
5bbcb9c
Merge remote-tracking branch 'upstream/trunk' into trunk
desrosj Mar 10, 2025
138bc04
Remove dependabot file to reset PRs.
desrosj Mar 10, 2025
f18472d
Re-adding core's current dependabot file to test.
desrosj Mar 10, 2025
bdba21a
Re-add full new config.
desrosj Mar 10, 2025
dca21dd
Limit to just playwright for now for testing purposes.
desrosj Mar 10, 2025
dc487cf
Exclude all for now.
desrosj Mar 10, 2025
8a69785
Lint fixes.
desrosj Mar 10, 2025
feb0a23
Try again
desrosj Mar 10, 2025
c315b49
Another test.
desrosj Mar 11, 2025
3ba25cf
Linting fix.
desrosj Mar 11, 2025
4aa86c2
Lint fix.
desrosj Mar 11, 2025
c3f00b8
Lint fix.
desrosj Mar 11, 2025
99b33f9
Merge remote-tracking branch 'upstream/trunk' into trunk
desrosj Mar 11, 2025
0d32c60
Test adding constraint.
desrosj Mar 11, 2025
77a443c
Revert linting fixes.
desrosj Mar 11, 2025
7bda7d7
Copy lint fixes.
desrosj Mar 11, 2025
09041b7
Re-add original dependabot config.
desrosj Mar 11, 2025
8d22bce
Merge remote-tracking branch 'upstream/trunk' into trunk
desrosj Mar 13, 2025
966fd42
Use different approach for diff checking.
desrosj Mar 13, 2025
f704669
Use output not env.
desrosj Mar 13, 2025
1b6a098
Add visual diff.
desrosj Mar 13, 2025
51e7668
Downgrade some packages.
desrosj Mar 13, 2025
e0cbc00
Make use of reusable pattern.
desrosj Mar 13, 2025
d12337c
Fix permissions.
desrosj Mar 13, 2025
277e421
Pass secrets correctly.
desrosj Mar 13, 2025
96c4b15
Package change.
desrosj Mar 13, 2025
c2278e8
Test changing workflow file.
desrosj Mar 13, 2025
50676f5
Sync lock file.
desrosj Mar 13, 2025
453e342
Change built files.
desrosj Mar 13, 2025
56a46b1
Retrigger.
desrosj Mar 13, 2025
fa1fdb7
Why?
desrosj Mar 13, 2025
03f680d
Switch back
desrosj Mar 13, 2025
95770a4
Remove push
desrosj Mar 13, 2025
c266365
Try shorter token expiration
desrosj Mar 13, 2025
ef1455f
Downgrade.
desrosj Mar 14, 2025
76f788e
Permission tweaks.
desrosj Mar 14, 2025
e715db6
Correct typo.
desrosj Mar 14, 2025
0f5311d
Revert reusable change.
desrosj Mar 14, 2025
6fb411b
Revert "Revert reusable change."
desrosj Mar 14, 2025
ebe6e1e
Automation: Updating built files with changes. [dependabot skip]
dependabot[bot] Mar 14, 2025
781cc39
Revert "Automation: Updating built files with changes. [dependabot sk…
desrosj Mar 14, 2025
0b91b5b
Remove PR write.
desrosj Mar 14, 2025
69fa15c
Testing change.
desrosj Mar 14, 2025
7b5eaa8
Revert "Testing change."
desrosj Mar 14, 2025
c55f3cc
Readd trunk push to test.
desrosj Mar 14, 2025
ce1e107
Automation: Updating built files with changes. [dependabot skip]
dependabot[bot] Mar 14, 2025
5c1fda5
Reference version of workflow in `trunk`.
desrosj Mar 14, 2025
0af0b96
Remove PR permission.
desrosj Mar 14, 2025
6ea31cf
Merge branch 'trunk' of github.com:desrosj/wordpress-develop into trunk
desrosj Mar 14, 2025
02b87d0
Testing something.
desrosj Mar 14, 2025
7502541
Try again.
desrosj Mar 14, 2025
b9a61a5
Automation: Updating built files with changes. [dependabot skip]
dependabot[bot] Mar 14, 2025
98b5f3f
Revert tests.
desrosj Mar 14, 2025
29735fd
Change local reference.
desrosj Mar 14, 2025
0e84755
Merge branch 'trunk' of github.com:desrosj/wordpress-develop into trunk
desrosj Mar 14, 2025
b551ece
Undo change.
desrosj Mar 14, 2025
3eebcc8
Downgrade package.
desrosj Mar 17, 2025
6d9645b
Merge latest.
desrosj Mar 17, 2025
ac4d300
Change built file.
desrosj Mar 17, 2025
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
98 changes: 98 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,101 @@ updates:
composer-packages:
patterns:
- "composer/ca-bundle"

# Monitor some npm dependencies for updates in groups.
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 50
ignore:
- dependency-name: "@wordpress/*"
groups:
##
# Groups for updating devDependencies.
##

# Dependencies related to Playwright testing (E2E, performance).
tests-playwright:
patterns:
- "*playwright*"
# Dependencies related to JavaScript testing with QUnit.
tests-qunit:
patterns:
- "*qunit*"
- "sinon*"
# Dependencies related to CSS and SASS building and manilupating.
dev-css-sass:
patterns:
- "autoprefixer"
# postcss and css related dependencies.
- "*css*"
- "*sass"
# Dependencies related to the Webpack build process.
dev-webpack:
patterns:
- "*webpack*"
- "react-refresh"
- "source-map-loader"
# Dependencies related to the local Docker development environment.
dev-docker:
patterns:
- "dotenv*"
- "wait-on"
# Dependencies that do not fall into a specific grouping.
dev-miscellaneous:
patterns:
- "chalk"
- "check-node-version"
- "ink-docstrap"
- "install-changed"
- "matchdep"
- "uuid"
# Dependencies related to JavaScript minification.
dev-uglify:
patterns:
- "*uglify*"
# All GruntJS related dependencies that do not relate to another group.
dev-grunt:
patterns:
- "*grunt*"

##
# Groups for updating production dependencies.
##

# Dependencies related to jQuery and its ecosystem.
external-jquery:
patterns:
- "jquery*"
# Dependencies related to React and its ecosystem.
external-react:
patterns:
- "react*"
- "!react-refresh"
# Dependencies used for bundling polyfill libraries into WordPress.
external-polyfills:
patterns:
- "core-js-url-browser"
- "element-closest"
- "formdata-polyfill"
- "imagesloaded"
- "objectFitPolyfill"
- "polyfill-library"
- "regenerator-runtime"
- "whatwg-fetch"
- "wicg-inert"
# Dependencies related to the Masonry library.
external-masonry:
patterns:
- "masonry-layout"
# Dependencies that do not fall into a specific grouping.
external-miscellaneous:
patterns:
- "backbone"
- "clipboard"
- "hoverintent"
- "json2php"
- "lodash"
- "moment"
- "underscore"
11 changes: 5 additions & 6 deletions .github/workflows/check-built-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.sha }}
cancel-in-progress: true


# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
Expand All @@ -43,9 +43,8 @@ jobs:
name: Update built files
permissions:
contents: write
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
# This should always reference a version of the workflow committed through SVN and never a local reference.
uses: WordPress/wordpress-develop/.github/workflows/reusable-check-built-files.yml@trunk
# This should never be changed to use local reference. Always reference the workflow in trunk.
uses: desrosj/wordpress-develop/.github/workflows/reusable-check-built-files.yml@trunk
secrets:
GH_APP_ID: ${{ secrets.GH_PR_MANAGEMENT_APP_ID }}
GH_APP_PRIVATE_KEY: ${{ secrets.GH_PR_MANAGEMENT_APP_PRIVATE_KEY }}
GH_APP_ID: ${{ secrets.GH_APP_ID }}
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
23 changes: 9 additions & 14 deletions .github/workflows/reusable-check-built-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,18 @@ jobs:
# - Builds Emoji files.
# - Builds bundled Root Certificate files.
# - Builds WordPress.
# - Checks for changes to versioned files.
# - Displays the result of git diff for debugging purposes.
# - Configures the Git author.
# - Checks for changes to versioned files.
# - Stages changes.
# - Commits changes.
# - Pushes changes.
update-built-files:
name: Check and update built files
runs-on: ubuntu-24.04
# This prevents an unnecessary second run after changes are committed back because Dependabot always rebases
# updates and force pushes.
if: ${{ github.actor != 'dependabot[bot]' || github.event.commits < 2 }}
timeout-minutes: 10
permissions:
contents: write
# This prevents a second run after changes are committed back because Dependabot always rebases updates onto trunk.
if: ${{ github.actor != 'dependabot[bot]' || github.event.commits < 2 }}
steps:
- name: Generate Installation Token
id: generate_token
Expand All @@ -59,7 +56,7 @@ jobs:
private_key = open("private-key.pem", "r").read()
payload = {
"iat": int(time.time()),
"exp": int(time.time()) + 600, # 10-minute expiration
"exp": int(time.time()) + 60, # 1-minute expiration
"iss": $GH_APP_ID
}
print(jwt.encode(payload, private_key, algorithm="RS256"))
Expand Down Expand Up @@ -130,6 +127,11 @@ jobs:
- name: Build WordPress
run: npm run build:dev

- name: Configure git user name and email
run: |
git config user.name "dependabot[bot]"
git config user.email 49699333+dependabot[bot]@users.noreply.github.com

- name: Check for changes to versioned files
id: built-file-check
run: |
Expand All @@ -140,15 +142,8 @@ jobs:
fi

- name: Display changes to versioned files
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
run: git diff

- name: Configure git user name and email
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
run: |
git config user.name "dependabot[bot]"
git config user.email 49699333+dependabot[bot]@users.noreply.github.com

- name: Stage changes
if: ${{ steps.built-file-check.outputs.uncommitted_changes == 'true' }}
run: git add .
Expand Down
Loading
Loading