fix(release): Upload npm tarball artifact during CI#91
Merged
Conversation
Craft's npm target expects build artifacts to be available. Add pnpm pack and artifact upload steps to CI so Craft can find and publish the package during release. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
added a commit
that referenced
this pull request
Feb 3, 2026
Craft publish fails when it can't find npm artifacts for the release commit. The root cause is that CI only ran on `main`, but `craft prepare` creates release commits on `release/*` branches, so no artifacts were uploaded for those commit SHAs. This matches the approach used by sentry-mcp: run CI on both `main` and `release/*` branches so artifacts are uploaded when release commits are pushed. The previous fix (#91) added artifact upload to CI, which was correct. This ensures CI actually runs on release commits. Fixes the "Can't find any artifacts" error during craft publish. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
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.
Craft's npm target expects build artifacts to be available. This adds
pnpm packand GitHub artifact upload steps to the CI workflow so Craft can find and publish the package during release.Previously, the publish step would fail with "Can't find any artifacts" because no artifacts were being uploaded. The tarball is now packed after the build and uploaded with the commit SHA as the artifact name, which Craft uses to locate it.
Refs getsentry/craft#123