From 5132c5a901a54d30298bcb3dc6a52d1c6a897178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Thu, 25 Jun 2026 20:40:43 +0000 Subject: [PATCH 1/2] fix(ci): write bun installer to RUNNER_TEMP on Windows ARM The Windows ARM bun install downloaded install.ps1 into the repo checkout, leaving an untracked file that broke the next step's pnpm version clean-tree check. Write and run it from RUNNER_TEMP. --- .github/workflows/pre_release.yaml | 5 +++-- .github/workflows/release.yaml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre_release.yaml b/.github/workflows/pre_release.yaml index dcfed99ca..3cf3f9d14 100644 --- a/.github/workflows/pre_release.yaml +++ b/.github/workflows/pre_release.yaml @@ -133,12 +133,13 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - irm bun.sh/install.ps1 -OutFile install.ps1 + $installer = Join-Path $env:RUNNER_TEMP install.ps1 + irm bun.sh/install.ps1 -OutFile $installer # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - .\install.ps1 -Version $bunVersion + & $installer -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6f75894c..7c1d6c3c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -161,12 +161,13 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - irm bun.sh/install.ps1 -OutFile install.ps1 + $installer = Join-Path $env:RUNNER_TEMP install.ps1 + irm bun.sh/install.ps1 -OutFile $installer # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - .\install.ps1 -Version $bunVersion + & $installer -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH From b3854bf732662c265d75488558396f5be92f464b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sol=C3=A1r?= Date: Wed, 1 Jul 2026 14:57:20 +0000 Subject: [PATCH 2/2] fix(ci): skip pnpm git checks on bundle build pnpm 11's `pnpm version` aborts on an unclean working tree (ERR_PNPM_UNCLEAN_WORKING_TREE); the Windows ARM bun install leaves an untracked install.ps1 behind. pnpm 10 did not check by default. Pass --no-git-checks on the bundle-build version bump to restore that. --- .github/workflows/pre_release.yaml | 7 +++---- .github/workflows/release.yaml | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre_release.yaml b/.github/workflows/pre_release.yaml index 3cf3f9d14..d47ec4507 100644 --- a/.github/workflows/pre_release.yaml +++ b/.github/workflows/pre_release.yaml @@ -133,13 +133,12 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - $installer = Join-Path $env:RUNNER_TEMP install.ps1 - irm bun.sh/install.ps1 -OutFile $installer + irm bun.sh/install.ps1 -OutFile install.ps1 # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - & $installer -Version $bunVersion + .\install.ps1 -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH @@ -154,7 +153,7 @@ jobs: bun build --compile --target=bun-windows-x64-baseline --outfile test index.ts - name: Set pre-release version - run: pnpm version ${{ needs.update_changelog.outputs.pre_release_version }} --no-git-tag-version --allow-same-version + run: pnpm version ${{ needs.update_changelog.outputs.pre_release_version }} --no-git-tag-version --allow-same-version --no-git-checks - name: Build Bundles run: pnpm run insert-cli-metadata && pnpm run build-bundles diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c1d6c3c8..2c2c0939f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -161,13 +161,12 @@ jobs: if: ${{ matrix.os == 'windows-11-arm' }} run: | $bunVersion = (Get-Content .bun-version).Trim() - $installer = Join-Path $env:RUNNER_TEMP install.ps1 - irm bun.sh/install.ps1 -OutFile $installer + irm bun.sh/install.ps1 -OutFile install.ps1 # Bun doesn't have Windows ARM64 builds, so the setup-bun action fails. The install script however, # does "support" it. - & $installer -Version $bunVersion + .\install.ps1 -Version $bunVersion Join-Path (Resolve-Path ~).Path ".bun\bin" >> $env:GITHUB_PATH @@ -182,7 +181,7 @@ jobs: bun build --compile --target=bun-windows-x64-baseline --outfile test index.ts - name: Set version - run: pnpm version ${{ needs.release_metadata.outputs.version_number }} --no-git-tag-version --allow-same-version + run: pnpm version ${{ needs.release_metadata.outputs.version_number }} --no-git-tag-version --allow-same-version --no-git-checks - name: Build Bundles run: pnpm run insert-cli-metadata && pnpm run build-bundles