Skip to content

Commit 06b092e

Browse files
author
Igor Oleinikov
committed
Add yarn danger check
1 parent 268de71 commit 06b092e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/js/dangerfile.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { danger, fail } from 'danger';
2-
// import yarn from 'danger-plugin-yarn'
2+
import yarn from 'danger-plugin-yarn'
33
// import jest from "danger-plugin-jest"
44

55
export default async () => {
6-
// await yarn()
7-
86
if (danger.github.pr) {
97
console.log('PR exists', danger.github.pr.html_url);
108
} else {
119
fail('PR does not exist');
1210
}
1311

14-
fail('The danger file is not ready yet');
12+
await yarn();
1513
}

0 commit comments

Comments
 (0)