Skip to content

Commit af6b774

Browse files
committed
chore: use 1 worker in CI
1 parent 55090e9 commit af6b774

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
command: pnpm install --frozen-lockfile
2020
- run:
2121
name: build
22-
command: pnpm prepublishOnly
22+
command: ASTX_WORKERS=1 pnpm prepublishOnly
2323
- run:
2424
name: upload test coverage
2525
command: pnpm codecov
2626
- run:
2727
name: release
28-
command: pnpm semantic-release
28+
command: ASTX_WORKERS=1 pnpm semantic-release
2929
workflows:
3030
version: 2
3131
build:

src/cli/transform.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ const transform: CommandModule<Options> = {
157157

158158
const interactive = isInteractive()
159159
const config = (await astxCosmiconfig.search())?.config
160-
const workers = argv.workers ?? config?.workers
160+
const workers =
161+
argv.workers ??
162+
(process.env.ASTX_WORKERS
163+
? parseInt(process.env.ASTX_WORKERS)
164+
: undefined) ??
165+
config?.workers
161166
const pool =
162167
workers === 0 ? null : new AstxWorkerPool({ capacity: workers })
163168
try {

0 commit comments

Comments
 (0)