Skip to content

Commit

Permalink
Merge pull request #1129 from chromaui/cody/cap-2455-chromauiactionla…
Browse files Browse the repository at this point in the history
…test-is-updating-with-canary-releases

Only publish `latest` action on push to main
  • Loading branch information
codykaup authored Dec 9, 2024
2 parents b444c7e + 0e39766 commit 383ecdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function main() {
await $({ stdout: 'inherit', stderr: 'inherit' })`auto shipit`;

// https://github.blog/changelog/2023-09-13-github-actions-updates-to-github_ref-and-github-ref/
if (process.env.GITHUB_REF === 'refs/heads/main') {
if (process.env.GITHUB_EVENT_NAME === 'push' && 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 383ecdd

Please sign in to comment.