Skip to content

ci(release): Move to Craft auto versioning - #20

Merged
BYK merged 2 commits into
mainfrom
ci/craft-auto-versioning
Nov 6, 2026
Merged

BYK merged 2 commits into
mainfrom
ci/craft-auto-versioning

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

BYK asked to put the Craft repos on auto versioning with all bump types, the same way getsentry/junior already works. This PR does that for sentry-starlight-theme.

Changes

  • .github/workflows/release.yml: swaps getsentry/action-prepare-release@v1 for getsentry/craft@v3. Per BYK's review, this is the floating v3 tag, so releases pick up Craft 3.x updates. Craft gets version: ${{ inputs.version || inputs.bump }}, force, and llm_api_key: ${{ github.token }}. The workflow also gets the copilot-requests: write permission, which BYK approved. The token, checkout, Node, and pnpm steps, the runner, and the other pinned SHAs don't change.
  • New workflow_dispatch inputs:
    • bump (required): auto (default), pre, patch, minor, or major
    • version (optional): an exact version
    • force: boolean, default false
  • Removed the prerelease and prerelease_id inputs, the Calculate version step, and scripts/calculate-release-version.mjs, which nothing else used. Their replacements:
    • bump: pre cuts X.Y.Z-alpha.N for the version auto would release.
    • beta and rc prereleases go through version, for example 0.10.0-beta.0.
  • .craft.yml: raises minVersion from 0.23.1 to 3.9.0. Bump types and auto need 2.14.0 or later, and pre needs 3.9.0 or later (Craft config docs).
  • README.md: the release section now describes the new inputs.

Notes

  • Tag layout: main reaches the plain v0.1.0–v0.9.1 tags. There are no -src tags, so this repo doesn't need the tag remap that warden and vitest-evals needed.
  • There's no .github/release.yml, so auto uses Craft's default conventional-commit categories. This repo's commits already follow them (feat, fix, ref, …).
  • changelogPolicy stays none. That means no AI changelog summaries for now, so the Copilot permission and llm_api_key sit unused until changelogs are turned on. Craft also warns that changelogPolicy is deprecated in favor of changelog.policy. I didn't touch either here.
  • No other workflow runs on published releases. changelog-preview.yml still uses getsentry/craft/.github/workflows/changelog-preview.yml@v2, which I didn't change.

Verification

  • actionlint 1.7.12 with shellcheck: the only finding is unknown permission scope "copilot-requests". actionlint doesn't know that scope yet, and junior's live workflow uses it too.
  • pnpm release:check and pnpm lint pass.
  • npx @sentry/[email protected] (the current 3.x) changelog --format json loads the new config with versioningPolicy: auto and finds 0 commits since v0.9.1.
  • I didn't trigger the release workflow.

via @BYK.

--

View Session [Sentry]

Replace getsentry/action-prepare-release and the local version
calculator with getsentry/craft 3.11.0. The bump input now offers
auto, pre, patch, minor, and major (default auto), plus an exact
version override. The prerelease and prerelease_id inputs are
replaced by pre (alpha) and the version override (beta, rc).

Raise .craft.yml minVersion to 3.9.0, which pre needs.

Co-Authored-By: Burak Yigit Kaya <[email protected]>
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-starlight-theme-playground Ready Ready Preview Nov 6, 2026 1:06pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Internal Changes 🔧

  • (release) Move to Craft auto versioning by BYK with sentry-junior in #20

🤖 This preview updates automatically when you update the PR.

@BYK
BYK merged commit 90a8de5 into main Nov 6, 2026
15 checks passed
@BYK
BYK deleted the ci/craft-auto-versioning branch November 6, 2026 19:02
BYK added a commit that referenced this pull request Nov 24, 2026
#19)

Bumps the changelog-preview reusable workflow
`getsentry/craft/.github/workflows/changelog-preview.yml@v2` → `@v3`,
and switches `.craft.yml` from the deprecated `changelogPolicy: none` to
`changelog.policy: auto`.

The release workflow already uses `getsentry/craft@v3` with `auto`
versioning and `minVersion: 3.9.0`
(#20). This moves the changelog preview
onto the same v3 line, matching the bumps going out across getsentry for
getsentry/craft#956, and puts the changelog on `auto` too. Versioning
stays on `auto`, Craft's default for `minVersion` ≥ 2.14.0.

With `changelog.policy: auto`, `craft prepare` creates `CHANGELOG.md` on
the first release (the repo has none yet) and adds an entry for each
release from merged PRs, sorted by Craft's default conventional-commit
categories since there's no `.github/release.yml`. The same notes become
the GitHub release body. AI summaries stay off, since
`changelog.aiSummary` is opt-in.

The reusable workflow's inputs, secrets, and permissions in v3 are the
same as in v2, or only gained optional additions. `.craft.yml` doesn't
use anything craft 3.0 removed (`changelog.includePaths`,
`unownedPaths`, nuget target).

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34)
[[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — c347b91c Deployed Nov 6, 2026 by vercel[bot]
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.

1 participant