Skip to content

Commit 865f7f0

Browse files
authored
ci(release): fix default channel variable value (#46)
1 parent 8dc5160 commit 865f7f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/semantic-release/release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
{
2525
// The "nextRelease" variable comes from the Result object
2626
// Specifications: https://semantic-release.gitbook.io/semantic-release/developer-guide/js-api#result
27-
publishCmd: './release.sh ${nextRelease.version} ${nextRelease.channel:-default}'
27+
publishCmd: './release.sh ${nextRelease.version} ${nextRelease.channel}'
2828
}
2929
],
3030
[

.github/semantic-release/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -Eeuo pipefail
44

55
NEXT_RELEASE_VERSION=$1
6-
NEXT_RELEASE_CHANNEL=$2
6+
NEXT_RELEASE_CHANNEL=${2:-default}
77

88
# Extract <major>.<minor> part of the SemVer version
99
NEXT_RELEASE_MAJOR_MINOR_VERSION="${NEXT_RELEASE_VERSION%".${NEXT_RELEASE_VERSION#*.*.}"}"

0 commit comments

Comments
 (0)