Skip to content

Commit 1d3f8c0

Browse files
committed
Add cleanup step for 'internal' directory in CI environment
1 parent 3a453fe commit 1d3f8c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

submodules.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { execSync } from 'child_process'
2+
import { rmdirSync } from 'fs'
23

34
const GITHUB_TOKEN = process.env.GITHUB_TOKEN
45

@@ -9,5 +10,9 @@ if (GITHUB_TOKEN) {
910
console.log('Running in local environment, using normal authentication')
1011
}
1112

13+
if (process.env.CI) {
14+
rmdirSync('internal', { recursive: true })
15+
}
16+
1217
execSync('git submodule update --init --recursive')
1318
execSync('cd internal && git checkout main')

0 commit comments

Comments
 (0)