Skip to content

Conversation

@vaind
Copy link
Contributor

@vaind vaind commented Sep 18, 2025

Summary

  • Add minimal .craft.yml configuration for automated GitHub releases
  • Add release workflow with required version input

Details

This adds basic Craft release tooling to enable automated release management:

Craft Configuration (.craft.yml)

  • Uses same minVersion (0.23.1) and auto changelog policy as other Sentry repos
  • GitHub-only releases - no artifact publishing needed
  • preReleaseCommand: pwsh -c '' (no-op command that always succeeds)
  • No actual version tracking or file updates needed

Release Workflow (.github/workflows/release.yml)

  • Manual workflow_dispatch trigger with required version input
  • No auto-version generation - user must provide version manually
  • Uses getsentry/action-prepare-release@v1 to handle release preparation
  • Authenticates with Sentry release bot credentials
  • Simple and minimal compared to console SDK workflows

Key Differences from Console SDKs

  • No VERSION file: No version tracking in repository
  • No scripts: No version bump or generation scripts needed
  • Required input: Version must always be provided manually
  • No-op preRelease: Command does nothing but succeed

This enables the github-workflows repository to use the standard Sentry release process while keeping the implementation minimal.

#skip-changelog

🤖 Generated with Claude Code

- Add .craft.yml with minimal configuration for GitHub-only releases
- Add release workflow with required version input
- Uses no-op preReleaseCommand since no version tracking needed
- Enables automated release management via craft
Adds 'permissions: contents: read' to limit GITHUB_TOKEN permissions
following security best practices. The workflow uses a GitHub App token
for privileged operations, so limiting the default token to read-only
is appropriate.
@vaind vaind requested a review from Flash0ver September 18, 2025 09:53
@vaind vaind marked this pull request as ready for review September 18, 2025 09:53
@vaind vaind merged commit 25e8763 into main Sep 18, 2025
23 checks passed
@vaind vaind deleted the chore/add-craft-release-tooling branch September 19, 2025 13:52
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.

2 participants