Skip to content

fix: resolve GitHub Packages publish pipeline failures#29

Merged
guillaumebadin merged 1 commit intomainfrom
spiritual-feeling
Apr 7, 2026
Merged

fix: resolve GitHub Packages publish pipeline failures#29
guillaumebadin merged 1 commit intomainfrom
spiritual-feeling

Conversation

@guillaumebadin
Copy link
Copy Markdown

Summary

  • Fix publishTo scoping: moved from ThisBuild to project scope (via ghpPublishSettings in module()) so it overrides sbt-typelevel's TypelevelSonatypePlugin — this was the root cause of artifacts being sent to central.sonatype.com instead of maven.pkg.github.com
  • Remove duplicate config from publish-ghp.sbt (redundant publishTo + credentials that were also ineffective at ThisBuild scope)
  • Update cachix/install-nix-action v17 → v31 (Node.js 20 deprecation)
  • Fix README: document that GitHub Packages requires read:packages auth even for public repos

Root cause analysis

All 3 publish attempts on April 2 failed because sbt-typelevel's TypelevelSonatypePlugin sets publishTo at project scope, which beats the ThisBuild scope used in both build.sbt and publish-ghp.sbt. SBT's scope precedence: project > ThisBuild > Global.

Test plan

  • CI passes (project loads, compiles, tests)
  • After merge, auto-tag.yml creates v0.12.7
  • publish-ghp.yml runs successfully for all 3 matrix jobs (rootJVM, rootJS, rootNative)
  • Artifacts appear at https://maven.pkg.github.com/beyond-scale-group/edomata

🤖 Generated with Claude Code

The publish-ghp workflow failed on all 3 attempts due to two root causes:

1. publishTo was set at ThisBuild scope, but sbt-typelevel's
   TypelevelSonatypePlugin overrides it at project scope. Artifacts
   were sent to central.sonatype.com instead of maven.pkg.github.com.
   Fix: move publishTo into ghpPublishSettings applied at project scope
   via the module() function.

2. publish-ghp.sbt contained a duplicate publishTo/credentials block
   (also at ThisBuild scope) that was equally ineffective.
   Fix: remove duplicates, keep only gpgWarnOnFailure.

Additional fixes:
- Update cachix/install-nix-action v17 → v31 (Node.js 20 deprecated)
- Fix README: GitHub Packages requires auth even for public repos

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@guillaumebadin guillaumebadin merged commit 24f20d4 into main Apr 7, 2026
10 of 14 checks passed
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.

2 participants