Skip to content

meta: add Craft-based release pipeline#10

Merged
BYK merged 1 commit into
mainfrom
byk/meta/craft-publishing
May 22, 2026
Merged

meta: add Craft-based release pipeline#10
BYK merged 1 commit into
mainfrom
byk/meta/craft-publishing

Conversation

@BYK
Copy link
Copy Markdown
Owner

@BYK BYK commented May 22, 2026

Summary

Add automated release/publish pipeline using getsentry/craft, following the publish_repo: self pattern.

Changes

  • .craft.yml — Craft config with npm (OIDC, public) + GitHub Release targets
  • .github/workflows/build.yml — Add release/** branch trigger, artifacts job (packs npm tarball on release branches), upgrade actions to v6/v7, remove stale monorepo env vars
  • .github/workflows/release.yml — Manual workflow_dispatch trigger for craft prepare
  • .github/workflows/publish.yml — Issue-label-triggered craft publish
  • package.json — Reset version to 0.5.0 (last published) so Craft manages version bumps
  • AGENTS.md — Document project setup and release flow

Release Flow

  1. Trigger Release workflow (workflow_dispatch) with version auto or explicit
  2. Craft creates release/X.Y.Z branch, bumps package.json, generates CHANGELOG.md, opens publish issue
  3. CI runs on release branch — build + test + artifacts jobs
  4. Add accepted label to publish issue
  5. Publish workflow publishes to npm (OIDC) and creates GitHub Release
  6. Issue auto-closes on success

Prerequisites (repo admin setup)

  • GitHub App with contents: write + issues: write → repo variable APP_ID + secret APP_PRIVATE_KEY
  • GitHub environment production
  • npm OIDC provenance linked for fossilize package

- Add .craft.yml with npm (OIDC) + GitHub Release targets
- Add release.yml workflow (manual craft prepare trigger)
- Add publish.yml workflow (issue-label-triggered craft publish)
- Update build.yml: add release/** trigger, artifacts job, upgrade actions to v6/v7, remove stale env
- Bump version to 0.5.0 (last published) so Craft can manage version bumps
- Add AGENTS.md documenting project setup and release flow
@BYK BYK merged commit ee627bc into main May 22, 2026
5 checks passed
@BYK BYK deleted the byk/meta/craft-publishing branch May 22, 2026 20:16
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