Skip to content

Commit

Permalink
fix: 更新判斷
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Jul 27, 2022
1 parent c20efd3 commit e0c7d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update-git-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Bluebird.resolve()

const commit = logs[0];

const bool = commit.subject.startsWith(`build(changelog): update CHANGELOG`) || isVersionBranch && commit.subject.startsWith(`build(release): update build`);
const bool = /^(?:build\(changelog\): update CHANGELOG|build\(cache\): update publish tags)/.test(commit.subject) || isVersionBranch && commit.subject.startsWith(`build(release): update build`);
const bool2 = match(commit.files, 'CHANGELOG.md').length > 0;

console.cyan.info(commit.abbrevHash, `${commit.subject}`);
Expand Down

0 comments on commit e0c7d5d

Please sign in to comment.