Skip to content

Commit 33487a8

Browse files
committed
workflow: allow manually specifying dist-tag when releasing
1 parent 480ac7f commit 33487a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const release = async () => {
9595
}
9696
}
9797

98-
let distTag = 'latest'
98+
let distTag = cliOptions['dist-tag'] || 'latest'
9999
if (bump === 'prerelease' || semver.prerelease(version)) {
100100
distTag = 'next'
101101
}

0 commit comments

Comments
 (0)