Skip to content

Commit f5aebad

Browse files
committed
fix: use commit hash for branch-based releases to work around pkg.pr.new issue
stackblitz-labs/pkg.pr.new#394
1 parent e79d9e9 commit f5aebad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ecosystem-ci.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
buildVue,
1212
bisectVue,
1313
parseVueVersion,
14+
getPermanentRef,
1415
} from './utils.ts'
1516
import { CommandOptions, RunOptions } from './types.ts'
1617

@@ -50,7 +51,12 @@ cli
5051
)
5152
}
5253
} else if (options.repo === 'vuejs/core' && options.branch) {
53-
options.release = `@${options.branch}`
54+
// Use the latest commit short SHA from the checked-out branch instead of the branch name
55+
const shortSha = await getPermanentRef()
56+
console.log(
57+
`Using latest commit on branch '${options.branch}': ${shortSha}`,
58+
)
59+
options.release = `@${shortSha}`
5460
}
5561
}
5662

0 commit comments

Comments
 (0)