Skip to content

Commit 891829e

Browse files
LucBaslgaticaq
andauthored
fix(publish): fixed potential error without channels (1.2.3)
Co-Authored-By: Leonardo Gatica <[email protected]>
1 parent 2d9b294 commit 891829e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/publish.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ module.exports = async (pluginConfig, { nextRelease: { version }, logger }) => {
5454
await publish(`${major}`)
5555
await publish('latest')
5656
return
57-
}
58-
59-
const [channel] = prerelease
57+
} else {
58+
const [channel] = prerelease
6059

61-
// on other channels release X:channel, X:1.1.1-channel
62-
await publish(channel)
63-
await publish(`${major}.${minor}.${patch}-${channel}`)
60+
// on other channels release X:channel, X:1.1.1-channel
61+
await publish(channel)
62+
await publish(`${major}.${minor}.${patch}-${channel}`)
63+
}
6464
} catch (err) {
6565
throw new Error('docker push failed')
6666
}

0 commit comments

Comments
 (0)