File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ jobs:
19
19
command : pnpm install --frozen-lockfile
20
20
- run :
21
21
name : build
22
- command : pnpm prepublishOnly
22
+ command : ASTX_WORKERS=1 pnpm prepublishOnly
23
23
- run :
24
24
name : upload test coverage
25
25
command : pnpm codecov
26
26
- run :
27
27
name : release
28
- command : pnpm semantic-release
28
+ command : ASTX_WORKERS=1 pnpm semantic-release
29
29
workflows :
30
30
version : 2
31
31
build :
Original file line number Diff line number Diff line change @@ -157,7 +157,12 @@ const transform: CommandModule<Options> = {
157
157
158
158
const interactive = isInteractive ( )
159
159
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
161
166
const pool =
162
167
workers === 0 ? null : new AstxWorkerPool ( { capacity : workers } )
163
168
try {
You can’t perform that action at this time.
0 commit comments