Skip to content
Merged
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,18 @@ jobs:
# jq -S normalises key order; on any error (e.g. package.json absent
# on one side) treat it as shipping.
INERT_DEVDEPS='["@biomejs/biome","markdownlint-cli2"]'

# The literal above is the list this commit publishes under. The guard
# compares against the copy on the base revision instead, so a PR that
# adds a dependency to the list cannot skip that dependency's own
# release — the entry has to land through review first. No literal on
# the base (guard newly added) means everything ships, the
# fail-closed direction.
INERT_DEVDEPS="$(git show "${BASE}:.github/workflows/ci.yml" 2>/dev/null \
| sed -n "s/^[[:space:]]*INERT_DEVDEPS='\(.*\)'[[:space:]]*$/\1/p" \
| head -n1 || true)"
[ -n "$INERT_DEVDEPS" ] || INERT_DEVDEPS='[]'

pkg_shipping_changed() {
local before after
# Single quotes are deliberate: $inert/$k are jq variables, not
Expand Down
Loading