Repository navigation
chore(process-daemon): publish from the monorepo - #59695
Merged
Merged
Conversation
jlongster
force-pushed
the
process-daemon-import
branch
from
October 27, 2026 19:54
58833a6 to
985f7a3
Compare
jlongster
force-pushed
the
process-daemon-release
branch
from
October 27, 2026 19:55
6da1f5a to
741bebc
Compare
jlongster
force-pushed
the
process-daemon-release
branch
from
October 27, 2026 20:07
741bebc to
242cccf
Compare
thdxr
approved these changes
Oct 27, 2026
alsuren
pushed a commit
to alsuren/opencode
that referenced
this pull request
Oct 28, 2026
Co-authored-by: Dax <mail@thdxr.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.
Issue for this PR
Builds on #59694 (
process-daemon-import, merged). No issue.Type of change
What does this PR do?
Moves the opencode-pty release pipeline into the monorepo, so future
@opencode-ai/ptyreleases ship frompackages/process-daemon. npm package names, theopencode-ptycrate and binary stay the same..github/workflows/release-process-daemon.yml, ported from opencode-pty'spublish.yml. Jobs, GitHub-hosted runners, pinned actions, toolchains, Zig workarounds, smoke tests, attestations and npm trusted publishing (id-token: write, npm ≥ 11.5.1,--provenance) are unchanged. All steps run inpackages/process-daemon, and all paths are updated.actions/attestis now pinned to the v4.2.2 SHA.process-daemon-vX.Y.Ztags publish. The tag must match^process-daemon-v[0-9]+\.[0-9]+\.[0-9]+([+-][0-9A-Za-z.-]+)?$, and${tag#process-daemon-v}must equal the version inCargo.tomlandnpm/package.json, including its optionalDependencies.build.rs,npm/**orscript/npm-packages.mjsrun the full build and npm pack, with no release and no publish.workflow_dispatchis also available.check-process-daemon.ymlalready tests every push to dev.refs/tags/process-daemon-v.--verify-tag --latest=false, the assets are uploaded, and then it is published with--latest=false. This is the same pattern as.github/release/publish-github-release.sh, so the monorepo's Latest release (which OpenCode's update paths follow) never changes. The title isprocess-daemon vX.Y.Z, with a one-line--notesinstead of--generate-notes, which would dump monorepo history.npm/package.jsonandCargo.tomlrepositorynow point at anomalyco/opencode, which npm provenance requires. The generated platform packages getdirectory: packages/process-daemon.Before the first
process-daemon-v*tag, a maintainer must change the npm trusted publisher on all 9 packages (@opencode-ai/ptyand@opencode-ai/pty-{darwin-arm64,darwin-x64,linux-arm64-gnu,linux-arm64-musl,linux-x64-gnu,linux-x64-musl,win32-arm64,win32-x64}) to repositoryanomalyco/opencode, workflowrelease-process-daemon.yml, with no environment.Tag ruleset: the active "Release tags: releasers and release deploy key" ruleset only covers
refs/tags/{v*,github-v*,vscode-v*,latest}.process-daemon-v*is not covered, so anyone with write access can push one and trigger an npm publish. To restrict it, addrefs/tags/process-daemon-v*to that ruleset, or create a separate one. Note thatv*doesn't matchprocess-daemon-v*, so the existing rule won't block these tags either.Follow-up to consider:
packages/console/app/src/lib/changelog.tslists the latest 20 releases of anomalyco/opencode without filtering, so process-daemon releases would appear on the changelog page. That code is unchanged here.How did you verify your code works?
node --check script/npm-packages.mjs. I also ran the script against dummy archives for all 8 targets and checked the generatedrepositoryfields.Checklist