Skip to content

Add changeset driven workflow for releases - #49

Merged
aron-cf merged 1 commit into
mainfrom
changelog
Aug 5, 2026
Merged

Add changeset driven workflow for releases#49
aron-cf merged 1 commit into
mainfrom
changelog

Conversation

@aron-cf

@aron-cf aron-cf commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This change replaces the tag-based release process with a changesets-driven release flow. Contributors now add changesets for released behavior changes, and the release workflow turns those notes into a Version Packages pull request before publishing. Private source packages such as @cloudflare/dofs, @cloudflare/computer-rpc, and @cloudflare/computerd are versioned and get changelogs, but are not published to npm.

The computerd linux-x64 package is treated as a private Docker image context rather than an npm package. Its version is derived from @cloudflare/computerd, and the changesets version step updates pinned ghcr.io/cloudflare/computer-computerd-linux-x64:<version> references in docs and examples as part of the Version Packages pull request. The stale manual npm publish path for the linux-x64 binary has been removed.

Publishing now converges the container image before npm publish. The publish script checks the desired image tags, builds and pushes missing tags to both ghcr.io and registry.cloudflare.com, then runs changeset publish. This makes reruns safe after partial failure: existing image tags are skipped, and existing npm versions are skipped by changesets.

You can verify the tooling locally with:

node --check .github/changeset-version.mjs
node --check .github/changeset-publish.mjs
npx js-yaml .github/workflows/release.yml >/dev/null
npx biome check .
git diff --check

I also tested the versioning path with a temporary private @cloudflare/computerd changeset and confirmed that it generated a private changelog, synced the derivative image package version, and updated image pins. The temporary changeset and generated release files were removed afterward.

The follow-up before the first real release is repository configuration: npm trusted publishing must point at .github/workflows/release.yml, and the container registry secrets must be present for the image publish step.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Thanks for your interest in Cloudflare Computer.

This repository does not accept unsolicited pull requests. Please use one of the accepted contribution paths instead:

If a maintainer asked you to open this pull request, they can add the allow-pr label and reopen it.

@github-actions github-actions Bot closed this Aug 5, 2026
@aron-cf aron-cf added the allow-pr Allow a PR to remain open. label Aug 5, 2026
@aron-cf aron-cf reopened this Aug 5, 2026
@aron-cf
aron-cf marked this pull request as ready for review August 5, 2026 13:07
@pkg-pr-new

pkg-pr-new Bot commented Aug 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/computer@49

commit: 2dc96d8

rajpratham1

This comment was marked as spam.

@aron-cf
aron-cf merged commit 76d9e75 into main Aug 5, 2026
11 checks passed
@aron-cf
aron-cf deleted the changelog branch August 5, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-pr Allow a PR to remain open.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants