This project publishes to GitHub Packages, not npmjs.org.
- Registry:
https://npm.pkg.github.com - Package:
@shpitdev/opencode-sandboxed-ad-hoc-research - Tags:
nextfor prerelease validation buildslatestfor stable public installs
Workflow: .github/workflows/publish-package.yml
- Any merge to
maintriggers publish automation. - The workflow resolves the merged PR context:
- Normal PR merge:
- publishes
0.0.(x+1)-next.<run>.<attempt>.<sha>with npm tagnext - opens or updates draft bump PR
ci/version-bump-0.0.(x+1)
- publishes
- Bump PR merge (
ci/version-bump-0.0.x):- publishes
0.0.xwith npm taglatest - does not create another bump PR
- publishes
- Normal PR merge:
- The workflow verifies:
- dist-tag points to the just-published version
- clean install from GitHub Packages into a fresh project
- installed CLI binaries execute (
--help)
- GitHub Actions:
GITHUB_TOKENmust keepcontents:write,pull-requests:write,packages:writepermissions inpublish-package.yml.
- Optional token:
GH_PATcan be set to letcreate-pull-requestuse a PAT instead ofGITHUB_TOKEN.
- Branch governance:
- Keep required checks enforced for PRs into
main:CheckValidatePrTitleCodeQL
- Keep required checks enforced for PRs into
# requires a token with read:packages
export NODE_AUTH_TOKEN="<token>"
npm view @shpitdev/opencode-sandboxed-ad-hoc-research dist-tags --registry https://npm.pkg.github.com
npm view @shpitdev/opencode-sandboxed-ad-hoc-research versions --json --registry https://npm.pkg.github.comPoint latest back to a known-good version:
export NODE_AUTH_TOKEN="<token with packages:write>"
npm dist-tag add @shpitdev/opencode-sandboxed-ad-hoc-research@0.0.<good> latest --registry https://npm.pkg.github.comPoint next to a known-good prerelease or stable version:
export NODE_AUTH_TOKEN="<token with packages:write>"
npm dist-tag add @shpitdev/opencode-sandboxed-ad-hoc-research@0.0.<good>-next.<build> next --registry https://npm.pkg.github.comDelete the package version from GitHub Packages (org package settings or API) using a token with package delete privileges.
- Revert incorrect code on a PR and merge to
main. - If needed, retag
next/latestfirst to stop new installs from pulling bad builds. - Confirm dist-tags and install:
npm view ... dist-tags- install into clean temp project
- Keep bump PR (
ci/version-bump-*) aligned with intended next stable patch.