Skip to content

Commit

Permalink
Fix GITHUB_REF check on release
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Oct 9, 2024
1 parent 1f13217 commit 3953912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ async function main() {
await build();
await $({ stdout: 'inherit', stderr: 'inherit' })`auto shipit`;

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

0 comments on commit 3953912

Please sign in to comment.