Skip to content

Commit f382932

Browse files
claude: Pass explicit version to prepare-dist in CI workflows
- Update test-bundle.yml to pass --set-version $(cat version.txt) - Update performance-check.yml to pass --set-version $(cat version.txt) - Remove .1 patch workaround in prepare-dist.ts (no longer needed) This ensures CI workflows use the correct version from version.txt, matching how create-release.yml handles versioning. The .1 patch workaround was added to work around incomplete version from the configuration file, but is no longer needed now that all callers pass the full version explicitly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 74986d1 commit f382932

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎.github/workflows/performance-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pushd package/src
3939
4040
bundle_start=$(date +%s.%3N)
41-
./quarto-bld prepare-dist
41+
./quarto-bld prepare-dist --set-version $(cat ../../version.txt)
4242
bundle_end=$(date +%s.%3N)
4343
bundle_elapsed=$(printf '%.3f\n' $(echo "scale=3; $bundle_end - $bundle_start" | bc))
4444

‎.github/workflows/test-bundle.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
shell: bash
3434
run: |
3535
pushd package/src
36-
./quarto-bld prepare-dist
36+
./quarto-bld prepare-dist --set-version $(cat ../../version.txt)
3737
mv ../../src/quarto.ts ../../src/quarto1.ts
3838
pushd ../pkg-working/bin
3939
./quarto check

‎package/src/common/prepare-dist.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ export async function prepareDist(
164164
inlineFilters(config);
165165
info("");
166166

167-
// Appease the bundler testing by patching the bad version from `configuration`
168-
if (config.version.split(".").length === 2) {
169-
config.version = `${config.version}.1`;
170-
}
171-
172167
// Write a version file to share
173168
info(`Writing version: ${config.version}`);
174169
Deno.writeTextFileSync(

0 commit comments

Comments
 (0)