ci: add craft release system - #11
Merged
Merged
Conversation
Adds the getsentry/craft release pipeline, mirroring the setup used in hono-openapi: - .craft.yml: manual versioning, auto changelog, npm (public) + github targets - release.yml: workflow_dispatch -> craft prepare (opens a publish request issue) - publish.yml: publishes when the request issue is labeled 'accepted' - package-artifacts.yml: builds & packs the tarball on release/** branches - release-preview.yml: pkg-pr-new continuous release previews on push/PR - changelog-preview.yml: reuses craft's changelog preview workflow Requires org/repo config: CRAFT_APP_ID variable + CRAFT_APP_PRIVATE_KEY secret (GitHub App), the pkg.pr.new app installed, and npm trusted publishing for the package.
pnpm exec only runs already-installed binaries; pkg-pr-new is not a dependency in this repo, so 'exec' failed with command-not-found. Use pnpm dlx to fetch and run it on demand.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the getsentry/craft release pipeline, mirroring the setup used in
hono-openapi(and the sibling PR onstandard-openapi).Workflows
.craft.yml— manual versioning, auto changelog, npm (public) + github targetsrelease.yml—workflow_dispatch→craft prepare: cuts arelease/<version>branch and opens a publish-request issuepublish.yml— publishes when the request issue is labeledacceptedpackage-artifacts.yml— builds & packs the tarball onrelease/**pushes (consumed by publish)release-preview.yml—pkg-pr-newcontinuous release previews on push/PRchangelog-preview.yml— reuses craft's shared changelog-preview workflowThe existing
test.ymlis left untouched.Required configuration (out of band, before this can run)
CRAFT_APP_IDrepository/org variable andCRAFT_APP_PRIVATE_KEYsecret (a GitHub App with contents+issues write, used to mint the release token)release-preview)@standard-community/standard-jsonWorkflow files are byte-identical to the CI-validated ones in
hono-openapi.