Skip to content

Commit 3bd9aea

Browse files
authored
fix(tooling): keep generate:check from dirtying the spec snapshot; correct wp-env pin note
* fix(tooling): generate:check no longer leaves the spec snapshot dirty * docs(ci): correct wp-env pin rationale (parity, not a proven 11.8.0 regression)
1 parent 7623de5 commit 3bd9aea

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ updates:
88
groups:
99
dev-dependencies:
1010
dependency-type: development
11-
# @wordpress/env is CI-critical and has broken across minors (11.8.0
12-
# regressed `wp-env run` in CI). Only auto-track patches; minor and major
13-
# bumps must be vetted by a human against a green gate.
11+
# @wordpress/env is CI-critical: pin it exact (package.json) for local/CI
12+
# parity and only auto-track patches, so a minor or major bump is vetted by
13+
# a human against a green gate rather than rolled in silently with the
14+
# dev-dependencies group.
1415
ignore:
1516
- dependency-name: '@wordpress/env'
1617
update-types:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lint:css": "wp-scripts lint-style \"blocks/**/*.{css,scss}\" \"assets/css/**/*.{css,scss}\"",
4444
"wp-env": "wp-env",
4545
"generate": "node bin/generate.mjs",
46-
"generate:check": "node bin/generate.mjs && git diff --exit-code src/Generated blocks/generated",
46+
"generate:check": "node bin/generate.mjs && git checkout -- specs/openapi.json && git diff --exit-code src/Generated blocks/generated",
4747
"fetch:ui": "node bin/fetch-ui-bundle.mjs",
4848
"check:distignore": "node bin/check-distignore.mjs",
4949
"check:component-map": "node bin/check-component-map.mjs",

0 commit comments

Comments
 (0)