We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc5160 commit 865f7f0Copy full SHA for 865f7f0
.github/semantic-release/release.config.js
@@ -24,7 +24,7 @@ module.exports = {
24
{
25
// The "nextRelease" variable comes from the Result object
26
// Specifications: https://semantic-release.gitbook.io/semantic-release/developer-guide/js-api#result
27
- publishCmd: './release.sh ${nextRelease.version} ${nextRelease.channel:-default}'
+ publishCmd: './release.sh ${nextRelease.version} ${nextRelease.channel}'
28
}
29
],
30
[
.github/semantic-release/release.sh
@@ -3,7 +3,7 @@
3
set -Eeuo pipefail
4
5
NEXT_RELEASE_VERSION=$1
6
-NEXT_RELEASE_CHANNEL=$2
+NEXT_RELEASE_CHANNEL=${2:-default}
7
8
# Extract <major>.<minor> part of the SemVer version
9
NEXT_RELEASE_MAJOR_MINOR_VERSION="${NEXT_RELEASE_VERSION%".${NEXT_RELEASE_VERSION#*.*.}"}"
0 commit comments