From 8e6c17124cdc523620a66efaf871ef8d335c0f49 Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Tue, 20 Aug 2024 22:58:35 +0200 Subject: [PATCH] fix: Snap publish regression (#8424) --- .changeset/small-badgers-pull.md | 5 +++++ packages/app-builder-lib/src/targets/snap.ts | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changeset/small-badgers-pull.md diff --git a/.changeset/small-badgers-pull.md b/.changeset/small-badgers-pull.md new file mode 100644 index 00000000000..0987603d06a --- /dev/null +++ b/.changeset/small-badgers-pull.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": patch +--- + +fix: Snap publish regression in pulling publish config diff --git a/packages/app-builder-lib/src/targets/snap.ts b/packages/app-builder-lib/src/targets/snap.ts index 1a007cb451c..770721fc35d 100644 --- a/packages/app-builder-lib/src/targets/snap.ts +++ b/packages/app-builder-lib/src/targets/snap.ts @@ -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)