Repository navigation
ci(release): drop GoReleaser Pro, publish npm from a workflow step - #1426
Conversation
|
Claude finished @jbrejner's task in 2m 7s —— View job Follow-up review of new commits (
|
| Finding | Location | Status |
|---|---|---|
npm-publish.sh --dry-run leaves npm/*/package.json modified, breaking check_dirty on the next run |
Makefile:112 |
✅ Resolved — 845bba3e adds `@git checkout -- npm/ 2> /dev/null |
This was already confirmed resolved in a prior inline reply on this thread, so no new reply was needed there.
New issues in the changed line: none. The one-line fix is correct and matches the suggestion exactly; no new bugs or regressions introduced.
New inline comments posted: 0
mbevc1
left a comment
There was a problem hiding this comment.
We also need to remove he key and cancel the license, if not needed
…w step GoReleaser Pro was only needed for the global `after` hook that ran scripts/npm-publish.sh. Run the script as a step after GoReleaser in the release job instead, and switch to the OSS distribution. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
31cf92a to
845bba3
Compare
Originally we thought we required GoReleaser Pro in order to release npm packages with GoReleaser.
That is correct - but not for the way we release them.
We are releasing npm packages like esbuild does it - a small wrapper package that has an optional dependency on each platform-specific binary package.
GoReleaser Pro does not handle that, so we can just release the packages by calling the same shell script we have used for half a year or so.
Changes
release.yml: use the freegoreleaserdistribution and dropGORELEASER_KEY. Runscripts/npm-publish.shas its own step right after GoReleaser, in the same job, so it keepsid-token: writefor trusted publishing and--provenance..goreleaser.yml: remove theafterhook that callednpm-publish.sh.Makefile:make build_releasenow runsnpm-publish.sh --dry-runafter the local GoReleaser build, then restoresnpm/.npm/README.md: describe the new flow.Testing
goreleaser checkpasses with the free GoReleaser (2.20.3), so the config uses no Pro-only settings.make build_releasepasses locally: 8 binaries built, 8 npm packages packed (7 platforms + wrapper), each with its binary.goreleaserjob inrelease.yml(snapshot build, npm dry run, artifacts list) and passed: run 46650609236. That workflow has since been removed from the branch.npm publish --provenancefrom the new step. That first runs on the next release.After merging
Once a release has gone through on the free GoReleaser, delete the
KOSLI_GORELEASERPROsecret and cancel the GoReleaser Pro license.Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR