Skip to content

Commit

Permalink
fix: Snap publish regression (#8424)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder authored Aug 20, 2024
1 parent de1ea75 commit 8e6c171
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-badgers-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix: Snap publish regression in pulling publish config
8 changes: 8 additions & 0 deletions packages/app-builder-lib/src/targets/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ function findSnapPublishConfig(config?: Configuration): SnapStoreOptions | null
return null
}

if (config.snap?.publish) {
const configCandidate = findSnapPublishConfigInPublishNode(config.snap.publish)

if (configCandidate) {
return configCandidate
}
}

if (config.linux?.publish) {
const configCandidate = findSnapPublishConfigInPublishNode(config.linux.publish)

Expand Down

0 comments on commit 8e6c171

Please sign in to comment.