Skip to content

fix(release): unblock snap publish + stop release.yml double-building snap#11

Merged
JohnMcLear merged 1 commit into
mainfrom
feat/linux-mvp
May 5, 2026
Merged

fix(release): unblock snap publish + stop release.yml double-building snap#11
JohnMcLear merged 1 commit into
mainfrom
feat/linux-mvp

Conversation

@JohnMcLear

Copy link
Copy Markdown
Member

v0.2.0's first run revealed two release-pipeline issues:

  1. snap-publish.yml failed at the build step because electron-builder, on detecting a git tag, tried to publish to the Snap Store from inside the build job — which doesn't have SNAPCRAFT_STORE_CREDENTIALS (those are scoped to the publish-edge / publish-stable jobs). Adds `--publish never` to the build invocation; the dedicated publish jobs use `snapcore/action-publish` with credentials properly scoped.

  2. release.yml's release-linux job was building all three linux targets (AppImage, deb, snap) and hit the same implicit-publish trap on the snap step. Constrains it to `--linux AppImage deb`; snap is exclusively owned by snap-publish.yml.

The v0.2.0 tag's AppImage / .deb / Windows artefacts shipped successfully despite the workflow showing failure. Snap publish needs a re-trigger after this lands.

🤖 Generated with Claude Code

Two issues surfaced on the v0.2.0 tag's first run:

1. snap-publish.yml's "Build snap" step failed because electron-builder
   detected the git tag and attempted an implicit publish to the Snap
   Store from inside the build job. SNAPCRAFT_STORE_CREDENTIALS is
   scoped to the dedicated publish-edge / publish-stable jobs only, so
   the build's keyring lookup failed and the workflow died before the
   snap was even uploaded as an artifact. Pass --publish never to the
   build step; the dedicated publish jobs use snapcore/action-publish
   with the credentials properly scoped.

2. release-linux's package step tried to build all three Linux targets
   from the electron-builder.yml (AppImage, deb, snap), which is
   redundant with snap-publish.yml AND triggers the same implicit-
   publish behaviour. Pass an explicit "AppImage deb" target list so
   this job only owns AppImage + deb. Snap is exclusively owned by
   snap-publish.yml.

(The release-linux run for v0.2.0 also showed an AppImage cache rename
race during the snap step — moot once snap is removed from this job.
The actual AppImage and deb artefacts uploaded successfully and are on
the v0.2.0 GitHub Release page; this commit just stops the spurious
failure.)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

@JohnMcLear
JohnMcLear merged commit b1a90ba into main May 5, 2026
3 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.

1 participant