Skip to content

Commit dde65b4

Browse files
committed
set default for refs argument to release task
1 parent ee1844d commit dde65b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulp.d/tasks/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function addVersionEntry (file, tagName, contents = Buffer.alloc(0)) {
7575
return file
7676
}
7777

78-
module.exports = (dest, bundleName, owner, repo, ref, token, updateBranch) => async () => {
78+
module.exports = (dest, bundleName, owner, repo, ref = 'refs/heads/main', token, updateBranch) => async () => {
7979
const octokit = new Octokit({ auth: `token ${token}` })
8080
let variant = ref.replace(/^refs\/heads\//, '')
8181
if (variant === 'main') variant = 'prod'

0 commit comments

Comments
 (0)