Skip to content

Commit 1e3d5f4

Browse files
Pass explicit version to prepare-dist in CI workflows
Remove version auto-detection from prepare-dist.ts and require explicit version parameter. Updates performance-check and test-bundle workflows to pass the version from version.txt.
1 parent fc1f44c commit 1e3d5f4

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)