Skip to content

Commit 6890d08

Browse files
authored
Merge pull request #1093 from chromaui/jmhobbs/action-deploy
Fix GITHUB_REF check on release
2 parents 1f13217 + 3953912 commit 6890d08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ async function main() {
1414
await build();
1515
await $({ stdout: 'inherit', stderr: 'inherit' })`auto shipit`;
1616

17-
if (process.env.GITHUB_REF === 'main') {
17+
// https://github.blog/changelog/2023-09-13-github-actions-updates-to-github_ref-and-github-ref/
18+
if (process.env.GITHUB_REF === 'refs/heads/main') {
1819
await publishAction('latest');
1920
} else {
2021
console.info('Skipping automatic publish of action-canary.');

0 commit comments

Comments
 (0)