Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit c193768

Browse files
committed
Fix clean repo checker
1 parent dcd6385 commit c193768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/publish-tag-push/lib/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ export async function main(options: Options): Promise<number> {
3030
const remote = env.PUBLISH_TAG_PUSH_REMOTE || 'origin'
3131
const branch = env.PUBLISH_TAG_PUSH_BRANCH || 'master'
3232

33-
const changes = await statusMatrix({ fs, dir: places.project })
33+
const changes = (await statusMatrix({ fs, dir: places.project }))
34+
.filter(([_, a, b, c]) => a !== 1 || b !== 1 || c !== 1)
3435
if (changes.length) {
3536
printErr('[ERROR] Repo is not clean')
3637
for (const [filename] of changes) {
3738
printErr(' → ' + filename)
3839
}
40+
return 1
3941
}
4042

4143
const exec = (cmd: StyledText, ...args: StyledText[]) => command(print, cmd, args)

0 commit comments

Comments
 (0)