Skip to content

Commit e57c8ea

Browse files
authored
Merge pull request #13288 from quarto-dev/fix-previewjs-build
2 parents 753a357 + be0af28 commit e57c8ea

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.github/workflows/create-release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@ jobs:
291291
shell: bash
292292
run: |
293293
if [ ! -f "share/preview/quarto-preview.js" ]; then
294-
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
294+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the linux build Prepare Distribution step."
295295
exit 1
296296
fi
297+
working-directory: ${{ github.workspace }}/quarto-${{needs.configure.outputs.version}}
297298

298299
- run: |
299300
tar -tzvf quarto-${{needs.configure.outputs.version}}-linux-amd64.tar.gz | head
@@ -388,31 +389,36 @@ jobs:
388389
runs-on: windows-latest
389390
needs: [configure, make-installer-win]
390391
steps:
391-
- uses: actions/download-artifact@v4
392+
- name: "Download Windows Zip"
393+
uses: actions/download-artifact@v4
392394
with:
393395
name: Windows Zip
394396
path: .
395-
- run: |
397+
398+
- name: "Extract Windows Zip"
399+
run: |
396400
tar -xf quarto-${{needs.configure.outputs.version}}-win.zip
397401
398402
# Check for share/preview/quarto-preview.js
399403
- name: Ensure share/preview/quarto-preview.js exists
400404
shell: bash
401405
run: |
402406
if [ ! -f "share/preview/quarto-preview.js" ]; then
403-
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build configure step."
407+
echo "::error file=share/preview/quarto-preview.js::Required file share/preview/quarto-preview.js not found. Check the windows build Prepare Distribution step."
404408
exit 1
405409
fi
406410
407-
- run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
411+
- name: "Add bin to PATH"
412+
run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\bin"
408413

409-
- run: |
410-
tar -tzvf quarto-${{needs.configure.outputs.version}}-win.zip
414+
- name: "Show Directory Listing and PATH"
415+
run: |
411416
ls -lR
412417
echo $PATH
413418
shell: bash
414419

415-
- run: |
420+
- name: "Run Quarto Commands"
421+
run: |
416422
quarto check
417423
quarto --paths
418424
quarto --version

src/webui/quarto-preview/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"typescript": "^4.5.2",
3636
"vite": "^3.0.0",
3737
"vite-plugin-css-injected-by-js": "^3.1.0",
38-
"vite-plugin-static-copy": "^0.13.0"
38+
"vite-plugin-static-copy": "^0.13.0",
39+
"fs-extra": "<=11.3.0"
3940
}
4041
}

0 commit comments

Comments
 (0)