Skip to content

Commit 2463c9f

Browse files
committed
fix(publish): ensure fresh embedded resources before build
Prevent stale templates/resources in platform binaries by generating embedded resources prior to build/publish steps.
1 parent da16bbc commit 2463c9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/publish.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ log(`tag: ${tag}`);
6767
log(`dry run: ${dryRun ? 'yes' : 'no'}`);
6868
log(`build: ${skipBuild ? 'skip' : 'run'}`);
6969

70+
// Always ensure the embedded archive is fresh before any build/publish step.
71+
// This avoids stale templates/resources in platform binaries produced during tagging.
72+
await run('bun scripts/generate-embedded-resources.mjs --quiet || bun scripts/generate-embedded-resources.mjs');
73+
7074
if (!skipBuild) {
7175
// Build all targets so we can publish all platform packages from a single runner.
7276
await run('bun run build -- --all');

0 commit comments

Comments
 (0)