Skip to content

Commit f1f778a

Browse files
committed
fix: skip branch check when running on GHA
1 parent af38535 commit f1f778a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ target.releaseNext = () => {
7979

8080
target.releaseLatest = async () => {
8181
const currentBranch = exec('git rev-parse --abbrev-ref HEAD').stdout.trim();
82-
if (currentBranch !== 'master') {
82+
console.log(`Current branch: ${currentBranch}`);
83+
if (!process.env.GITHUB_ACTIONS && currentBranch !== 'master') {
8384
console.error('Must be on `master` branch to cut an @latest release.');
8485
return;
8586
}

0 commit comments

Comments
 (0)