Skip to content

Commit 5f51e38

Browse files
committed
always make dir
1 parent 945a6eb commit 5f51e38

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jobs:
324324
run: yarn lage pack --verbose --grouped
325325

326326
- name: List packed tarballs
327-
run: ls -la _packed/ || true
327+
run: ls -la _packed/
328328

329329
- name: Upload packed tarballs
330330
uses: actions/upload-artifact@v4

scripts/src/worker/pack.mts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ export const run: WorkerRunnerFunction = async ({ target }) => {
2323
throw new Error('pack worker requires options.outputDir to be set in lage.config.js');
2424
}
2525

26+
// Resolve relative to cwd (lage runs from repo root, so this resolves correctly)
27+
const stagingDir = resolve(outputDir);
28+
await fs.mkdirp(stagingDir);
29+
2630
// Skip if this version is already published
2731
const result = await $`npm view ${pkg.name}@${pkg.version} version`.nothrow().quiet();
2832
if (result.exitCode === 0) {
2933
console.log(`Skipping ${pkg.name}@${pkg.version} — already published`);
3034
return;
3135
}
3236

33-
// Resolve relative to cwd (lage runs from repo root, so this resolves correctly)
34-
const stagingDir = resolve(outputDir);
35-
await fs.mkdirp(stagingDir);
36-
3737
// Build a safe filename: @fluentui-react-native/button@1.0.0 -> fluentui-react-native-button-1.0.0.tgz
3838
const safeName = (pkg.name as string).replace(/@/g, '').replace(/\//g, '-');
3939
const tgzFilename = `${safeName}-${pkg.version}.tgz`;

0 commit comments

Comments
 (0)