Skip to content

ci: fix the changesets/action v2 inputs, give Dependabot a five-day cooldown - #38

Merged
amritk merged 2 commits into
mainfrom
claude/intelligent-cray-0egfft
Sep 9, 2026
Merged

amritk merged 2 commits into
mainfrom
claude/intelligent-cray-0egfft

Conversation

@amritk

@amritk amritk commented Sep 9, 2026

Copy link
Copy Markdown
Member

What & why

Two CI changes.

The release workflow was broken. The changesets/action 1.9.0 → 2.1.1 bump in #34 renamed every input release.yml passes, and v2 hard-errors on the old names, so the first Release run on the new pin (run 34405857958) stopped before doing anything:

Error: The following inputs have been renamed:
- "publish" -> "publish-script"   - "version" -> "version-script"
- "commit" -> "commit-message"    - "title"   -> "pr-title"

All four are renamed here. The GITHUB_TOKEN environment variable goes with them: v2 reads the token from the github-token input, which already defaults to the job's github.token, and throws when the environment variable is set to anything that does not match it — a second failure waiting behind the first. The NPM_TOKEN comment that lived on that env: block moves up to the step, since its point (nothing in this job may define NPM_TOKEN, or trusted publishing falls back to an .npmrc) is about the job, not about the one variable that happened to be there.

v2 wants @changesets/cli v3, which #35 brought in an hour before the bump.

Dependabot now waits five days. Both ecosystems get cooldown: { default-days: 5 } — the window a bad release usually gets yanked or fixed upstream in. github-actions supports only the flat default-days; bun also has the per-bump semver-*-days variants, unused here. Worth knowing: cooldown holds a version back rather than delaying the run, so on this repo's monthly schedule a release in the five days before a run waits for the next one.

Which packages

Repo tooling — .github/workflows/release.yml and .github/dependabot.yml. No published package is touched.

Exactness

Not applicable: no package's output changes, and no formatter code is touched.

How it was validated

  • bun run check, bun run types:check, bun run test — green in CI on this head
  • The pinned SHA's action.yml accepts exactly the four input names now passed and nothing else, checked field by field against the schema
  • bun changeset status --since=origin/main runs clean on @changesets/cli 3.0.1 locally, so the v3 bump does not break the status check either
  • Dependabot's own .github/dependabot.yml check passes on this head, which is what confirms cooldown is accepted on both ecosystems

The one thing CI here cannot prove: release.yml only triggers on pushes to main, so no check on this PR runs the Release job. The real verification is the Release run that fires on the merge commit.

Changeset

  • Added a changeset — two empty ones, since neither change touches a published package

The 1.9.0 -> 2.1.1 bump in #34 renamed every input this workflow passed, so
the first release run on the new pin stopped before doing anything:

  Error: The following inputs have been renamed:
  - "publish" -> "publish-script"
  - "version" -> "version-script"
  - "commit" -> "commit-message"
  - "title" -> "pr-title"

All four are renamed, and the `GITHUB_TOKEN` environment variable goes with
them: v2 reads the token from the `github-token` input, which already
defaults to the job's `github.token`, and throws when the environment
variable is set to anything that does not match it. The NPM_TOKEN comment
that lived on that `env:` block moves up to the step, since its point - that
nothing in this job may define NPM_TOKEN or trusted publishing falls back to
an .npmrc - is about the job, not about the one variable that was there.

v2 wants @changesets/cli v3, which #35 brought in an hour earlier;
`changeset status --since` and both release scripts read the same on it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLgLPm9AnPQiFjG7ZN5ckZ
Both ecosystems now wait five days between a release and the pull request
that takes it, which is the window a bad release usually gets yanked or
fixed upstream in. `github-actions` supports only the flat `default-days`;
`bun` also has the per-bump variants, unused here since the ask was one
number for everything.

Cooldown holds a version back rather than delaying the run, so on this
repo's monthly schedule a release in the five days before a run waits for
the next one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CLgLPm9AnPQiFjG7ZN5ckZ
@amritk amritk changed the title chore: update changesets/action inputs to v2 API ci: fix the changesets/action v2 inputs, give Dependabot a five-day cooldown Sep 9, 2026
@amritk
amritk merged commit e26d983 into main Sep 9, 2026
9 checks passed
@amritk
amritk deleted the claude/intelligent-cray-0egfft branch September 9, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants