feat(packaging): publish codeguard to npm and PyPI#29
Merged
Conversation
Add thin wrapper packages that ship the prebuilt GoReleaser binaries to npm (@devr-tools/codeguard launcher + per-platform optionalDependencies) and PyPI (per-platform wheels). No Go toolchain or network access at install time. - packaging/extract-binaries.sh stages the 4 release archives (darwin/linux x amd64/arm64; no Windows, tar.gz, codeguard_v<ver>_<os>_<arch>). - npm: build.sh assembles the launcher + platform packages; launcher shim resolves the host optionalDependency and execs the binary. - PyPI project is `devr-codeguard` (plain `codeguard` is taken); the installed command is still `codeguard` — distribution name and data-script name are decoupled in build_wheels.py. - release.yml gains publish-npm and publish-pypi jobs (stable-only, OIDC trusted publishing). Because release.yml is a reusable workflow called by cd.yml, the trusted publishers must be configured against cd.yml. Verified locally against v0.7.0: npm dry-run + install-simulation, twine check on all 6 wheels, and `pip install devr-codeguard` yielding a working `codeguard` command. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
alxxjohn
added a commit
that referenced
this pull request
Jul 3, 2026
🤖 I have created a release *beep* *boop* --- ## [0.8.0](v0.7.0...v0.8.0) (2026-07-03) ### Features * **packaging:** publish codeguard to npm and PyPI ([6a03f0e](6a03f0e)) * **packaging:** publish codeguard to npm and PyPI ([#29](#29)) ([bf39a7a](bf39a7a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
Add thin wrapper packages that ship the prebuilt GoReleaser binaries to npm (@devr-tools/codeguard launcher + per-platform optionalDependencies) and PyPI (per-platform wheels). No Go toolchain or network access at install time.
devr-codeguard(plaincodeguardis taken); the installed command is stillcodeguard— distribution name and data-script name are decoupled in build_wheels.py.Verified locally against v0.7.0: npm dry-run + install-simulation, twine check on all 6 wheels, and
pip install devr-codeguardyielding a workingcodeguardcommand.