Skip to content

fix(release): Upload npm tarball artifact during CI#91

Merged
dcramer merged 1 commit intomainfrom
dcramer/craft-config-fix
Feb 3, 2026
Merged

fix(release): Upload npm tarball artifact during CI#91
dcramer merged 1 commit intomainfrom
dcramer/craft-config-fix

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 3, 2026

Craft's npm target expects build artifacts to be available. This adds pnpm pack and 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

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>
@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
warden Ready Ready Preview, Comment Feb 3, 2026 10:34pm

Request Review

@dcramer dcramer merged commit 7537a5d into main Feb 3, 2026
13 checks passed
@dcramer dcramer deleted the dcramer/craft-config-fix branch February 3, 2026 22:57
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>
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