Skip to content

Commit ab3d785

Browse files
authored
Merge pull request #3 from Cryptact/fix-skip-branch-check-on-gha
fix: skip branch check when running on GHA
2 parents af38535 + 7c6f8f9 commit ab3d785

2 files changed

Lines changed: 3 additions & 2 deletions

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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cryptact/fontkit",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "An advanced font engine for Node and the browser",
55
"main": "dist/fontkit.umd.js",
66
"unpkg": "dist/fontkit.umd.min.js",

0 commit comments

Comments
 (0)