Skip to content

ci(release): Switch from action-prepare-release to Craft#28

Merged
BYK merged 13 commits intomasterfrom
ci/migrate-to-craft-action
Jan 15, 2026
Merged

ci(release): Switch from action-prepare-release to Craft#28
BYK merged 13 commits intomasterfrom
ci/migrate-to-craft-action

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/publish-release.yaml to Craft reusable workflow

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/publish-release.yaml to Craft reusable workflow
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

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).


Build / dependencies / internal 🔧

  • (release) Switch from action-prepare-release to Craft by BYK in #28

🤖 This preview updates automatically when you update the PR.

BYK added 3 commits January 9, 2026 23:17
The previous migration incorrectly removed the GitHub App token
authentication step. This commit restores it by switching to the
composite action pattern which preserves the auth flow.
Comment on lines 11 to 20
jobs:
release:
runs-on: ubuntu-latest
name: Release version
name: Release a new version
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
token: ${{ steps.token.outputs.token }}
fetch-depth: 0

- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
- name: Get auth token
id: token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}

This comment was marked as outdated.


- name: Prepare release
uses: getsentry/action-prepare-release@v1
uses: getsentry/craft@1c58bfd57bfd6a967b6f3fc92bead2c42ee698ce

This comment was marked as outdated.

@BYK BYK requested a review from Jeffreyhung January 15, 2026 10:50
@BYK BYK merged commit 2f555f6 into master Jan 15, 2026
40 checks passed
@BYK BYK deleted the ci/migrate-to-craft-action branch January 15, 2026 10:50
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