Skip to content

Commit

Permalink
Fix tag Prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
zrgt committed Apr 18, 2024
1 parent 36e74dc commit 9796060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp.d/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function addVersionEntry (file, tagName, contents = Buffer.alloc(0)) {
module.exports = (dest, bundleName, owner, repo, ref, token, updateBranch, latestAlias) => async () => {
const octokit = new Octokit({ auth: `token ${token}` })
let variant = ref ? ref.replace(/^refs\/heads\//, '') : 'main'
if (variant === 'main') variant = 'prod'
if (variant === 'main') variant = 'v'
ref = ref.replace(/^refs\//, '')
const tagPrefix = `${variant}-`
const latestTagName = latestAlias === false ? undefined : `${tagPrefix}${latestAlias || 'latest'}`
Expand Down

0 comments on commit 9796060

Please sign in to comment.