Skip to content

Commit

Permalink
Merge pull request #1093 from chromaui/jmhobbs/action-deploy
Browse files Browse the repository at this point in the history
Fix GITHUB_REF check on release
  • Loading branch information
jmhobbs authored Oct 10, 2024
2 parents 1f13217 + 3953912 commit 6890d08
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 6890d08

Please sign in to comment.