Skip to content

ci(release): drop GoReleaser Pro, publish npm from a workflow step - #1426

Merged
mbevc1 merged 2 commits into
mainfrom
ci/drop-goreleaser-pro
Dec 1, 2026
Merged

mbevc1 merged 2 commits into
mainfrom
ci/drop-goreleaser-pro

Conversation

@jbrejner

@jbrejner jbrejner commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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 free goreleaser distribution and drop GORELEASER_KEY. Run scripts/npm-publish.sh as its own step right after GoReleaser, in the same job, so it keeps id-token: write for trusted publishing and --provenance.
  • .goreleaser.yml: remove the after hook that called npm-publish.sh.
  • Makefile: make build_release now runs npm-publish.sh --dry-run after the local GoReleaser build, then restores npm/.
  • npm/README.md: describe the new flow.

Testing

  • goreleaser check passes with the free GoReleaser (2.20.3), so the config uses no Pro-only settings.
  • make build_release passes locally: 8 binaries built, 8 npm packages packed (7 platforms + wrapper), each with its binary.
  • On GitHub, a temporary workflow ran the same steps as the goreleaser job in release.yml (snapshot build, npm dry run, artifacts list) and passed: run 46650609236. That workflow has since been removed from the branch.
  • Not yet tested: the real npm publish --provenance from 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_GORELEASERPRO secret and cancel the GoReleaser Pro license.

Checklist

  • Docs are autogenerated from CLI help — make sure the help text reflects your changes
  • Helm chart (charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR
  • Terraform provider and related changes (terraform-provider-kosli, terraform-aws-kosli-reporter) updated, if needed

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @jbrejner's task in 2m 7s —— View job


Follow-up review of new commits (31cf92a1..845bba3e)

  • Fetch existing review comments/findings
  • Diff BEFORE..AFTER to see what changed
  • Check status of each previous finding
  • Flag any new bugs/regressions in changed lines
  • Post summary

Note on scope: 31cf92a1 isn't reachable in this branch's history (it belongs to an unrelated commit, "ci: fix SIGPIPE in temporary workflow's tarball check" — not part of this PR). This looks like a force-push/rebase artifact rather than a real "before" state for this PR. Per the fallback rule, I scoped the review to the only hunk touched by the newest commit on this branch (845bba3e, "Update Makefile"), which adds one line to the Makefile:

 	bash scripts/npm-publish.sh 0.0.99 --dry-run
+	@git checkout -- npm/ 2> /dev/null || true
 	@git tag -d v0.0.99 2> /dev/null || true

Status of previous findings:

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

Comment thread Makefile Resolved
Comment thread Makefile Resolved

@mbevc1 mbevc1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to remove he key and cancel the license, if not needed

jbrejner and others added 2 commits December 1, 2026 13:18
…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>
@jbrejner
jbrejner force-pushed the ci/drop-goreleaser-pro branch from 31cf92a to 845bba3 Compare December 1, 2026 13:20
@jbrejner jbrejner changed the title ci(release): drop GoReleaser Pro, publish npm packages from a workflo… ci(release): drop GoReleaser Pro, publish npm from a workflow step Dec 1, 2026
@jbrejner
jbrejner requested review from mbevc1 and removed request for AlexKantor87 December 1, 2026 13:28
@mbevc1
mbevc1 merged commit 36826b7 into main Dec 1, 2026
41 checks passed
@mbevc1
mbevc1 deleted the ci/drop-goreleaser-pro branch December 1, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants