Skip to content

ci: publish to npmjs and GitHub Packages#7

Merged
j4ys0n merged 1 commit into
mainfrom
ci/dual-registry-publish
Jul 10, 2026
Merged

ci: publish to npmjs and GitHub Packages#7
j4ys0n merged 1 commit into
mainfrom
ci/dual-registry-publish

Conversation

@j4ys0n

@j4ys0n j4ys0n commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

@missionsquad/missionsquad-core lives on GitHub Packages, so consumer repos scope @missionsquad to npm.pkg.github.com — which made x402-proxy (npmjs-only) unresolvable there. Registry routing is per-scope, not per-package, so the fix is to publish this package to both registries. 0.1.2 was already published to GitHub Packages manually; this PR makes CI do it for every future version.

Changes

  • publish.yaml: after the existing npmjs publish, a second setup-node re-points the generated .npmrc at npm.pkg.github.com and publishes with GITHUB_TOKEN (new packages: write permission).
  • Skip-if-exists guards on both publish steps: each checks npm view <name>@<version> against its registry and skips instead of failing, so pushes to main that don't bump the version (like this PR itself) stay green instead of erroring on the duplicate-version publish.
  • package.json: adds the repository field, which GitHub Packages uses to validate/link GITHUB_TOKEN publishes to this repo.

Verification

  • yarn build clean with the package.json change.
  • @missionsquad/x402-proxy@0.1.2 confirmed resolvable from both registry.npmjs.org and npm.pkg.github.com.
  • On merge, the workflow run should log two "already … — skipping" lines (0.1.2 exists on both registries), proving the guards work.

🤖 Generated with Claude Code

…ions

The publish workflow now publishes each version to both registries so
consumers can resolve @missionsquad/x402-proxy from either. Each publish
step checks whether the version already exists on its registry and skips
instead of failing, so pushes to main that do not bump the version stay
green. Adds packages: write permission and the repository field required
for GITHUB_TOKEN publishes to GitHub Packages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@j4ys0n j4ys0n merged commit 5c05613 into main Jul 10, 2026
1 check passed
@j4ys0n j4ys0n deleted the ci/dual-registry-publish branch July 10, 2026 04:36
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