From 5abb41c2a0a7fff7e988e2f3cb679be436b4f3b7 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Tue, 3 Nov 2026 08:04:09 +1100 Subject: [PATCH 1/2] ci: use voidzero-dev/setup-vp directly --- .github/workflows/autofix.yml | 11 ++++++---- .github/workflows/benchmarks.yml | 13 +++++++----- .github/workflows/bundle-size.yml | 26 ++++++++++++++--------- .github/workflows/check-skills.yml | 2 +- .github/workflows/compiler-platforms.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/pr.yml | 27 ++++++++++++++++-------- .github/workflows/release.yml | 19 +++++++++-------- .nvmrc => .node-version | 0 scripts/create-github-release.mjs | 2 +- 10 files changed, 63 insertions(+), 41 deletions(-) rename .nvmrc => .node-version (100%) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 78aea28c12..863f82dcb3 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -20,12 +20,15 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Fix formatting - run: pnpm format + run: vp run format - name: Generate labeler config - run: pnpm labeler-generate + run: vp run labeler-generate - name: Apply fixes uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4 with: diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index bbc3a1fa24..c220bc3ea1 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -22,7 +22,7 @@ on: - '!packages/**/__tests__/**' - '!packages/**/*.test.*' - 'benchmarks/**' - - '.nvmrc' + - '.node-version' workflow_dispatch: concurrency: @@ -70,14 +70,17 @@ jobs: with: persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false # Run the build outside of the CodSpeed action to avoid being slowed by intrumentation overhead. # (and then run the task itself with --excludeTaskDependencies) - name: Prepare ${{ matrix.benchmark }}:${{ matrix.framework }} benchmark run: >- - pnpm nx run + vp nx run @benchmarks/${{ matrix.benchmark }}:build:${{ matrix.framework }} - name: Run ${{ matrix.benchmark }}:${{ matrix.framework }} CodSpeed benchmark @@ -87,6 +90,6 @@ jobs: mode: ${{ matrix.mode }} run: >- WITH_INSTRUMENTATION=1 - pnpm nx run + vp nx run @benchmarks/${{ matrix.benchmark }}:test:perf:${{ matrix.framework }} --excludeTaskDependencies diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index 51ffa28e4c..e1bea39e14 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -9,7 +9,7 @@ on: - 'packages/**' - 'benchmarks/**' - 'scripts/benchmarks/bundle-size/**' - - '.nvmrc' + - '.node-version' - 'package.json' - 'pnpm-lock.yaml' push: @@ -18,7 +18,7 @@ on: - 'packages/**' - 'benchmarks/**' - 'scripts/benchmarks/bundle-size/**' - - '.nvmrc' + - '.node-version' - 'package.json' - 'pnpm-lock.yaml' workflow_dispatch: @@ -47,11 +47,14 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Measure Bundle Size - run: pnpm benchmark:bundle-size --outputStyle=stream --skipRemoteCache + run: vp run benchmark:bundle-size --outputStyle=stream --skipRemoteCache - name: Capture Benchmark Outputs id: capture @@ -112,7 +115,7 @@ jobs: # Fork PRs have a read-only GITHUB_TOKEN, so they cannot update comments. if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} run: | node scripts/benchmarks/common/upsert-pr-comment.mjs \ --pr "${{ github.event.pull_request.number }}" \ @@ -131,18 +134,21 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Measure Bundle Size - run: pnpm benchmark:bundle-size --outputStyle=stream --skipRemoteCache + run: vp run benchmark:bundle-size --outputStyle=stream --skipRemoteCache - name: Publish Benchmark Dashboard uses: benchmark-action/github-action-benchmark@52576c92bccf6ac60c8223ec7eb2565637cae9ba # v1.22.1 with: tool: customSmallerIsBetter name: Bundle Size (gzip) output-file-path: benchmarks/bundle-size/results/benchmark-action.json - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ github.token }} auto-push: true gh-pages-branch: gh-pages benchmark-data-dir-path: benchmarks/bundle-size diff --git a/.github/workflows/check-skills.yml b/.github/workflows/check-skills.yml index f00a11731b..de7409122a 100644 --- a/.github/workflows/check-skills.yml +++ b/.github/workflows/check-skills.yml @@ -93,7 +93,7 @@ jobs: if: steps.stale.outputs.has_review == 'true' env: BASE_BRANCH: ${{ github.event.repository.default_branch }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ github.token }} VERSION: ${{ github.event.release.tag_name || 'manual' }} run: | BRANCH="skills/review-${VERSION}" diff --git a/.github/workflows/compiler-platforms.yml b/.github/workflows/compiler-platforms.yml index 84afc2c837..db17e7bc35 100644 --- a/.github/workflows/compiler-platforms.yml +++ b/.github/workflows/compiler-platforms.yml @@ -75,7 +75,7 @@ jobs: if: ${{ !matrix.container }} uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version-file: .nvmrc + node-version-file: .node-version package-manager-cache: false - name: Setup pnpm (container) if: ${{ matrix.container }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index fde1100409..3fbb0c4f73 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -16,5 +16,5 @@ jobs: - name: Labeller uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6.1.0 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ github.token }} configuration-path: labeler-config.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ae19b4f0d2..eed87ef0cc 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,14 +35,17 @@ jobs: persist-credentials: false - name: Start Nx Workers run: npx nx-cloud start-workers - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Get base and head commits for `nx affected` uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1 with: main-branch-name: main - name: Run Checks - run: pnpm run test:pr --parallel=3 + run: vp run test:pr --parallel=3 - name: Stop Nx Workers if: ${{ always() }} run: npx nx-cloud stop-all-workers @@ -58,12 +61,15 @@ jobs: with: fetch-depth: 0 persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Build Packages - run: pnpm run build:all + run: vp run build:all - name: Publish Previews - run: pnpx pkg-pr-new publish --pnpm './packages/*' --template './examples/*/*' + run: vpx pkg-pr-new publish --pnpm './packages/*' --template './examples/*/*' version-preview: name: Version Preview runs-on: ubuntu-latest @@ -75,7 +81,10 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: persist-credentials: false - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Changeset Preview uses: TanStack/config/.github/changeset-preview@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 115c3445e6..1a7f4be02e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,13 +27,16 @@ jobs: with: fetch-depth: 0 persist-credentials: true # changesets/action pushes Release PR commits - - name: Setup Tools - uses: TanStack/config/.github/setup@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main + - name: Setup Vite+ + uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 + with: + run-install: true + cache: false - name: Run Build - run: pnpm run build:all + run: vp run build:all - name: Enter Pre-Release Mode if: "contains(github.ref_name, '-pre') && !hashFiles('.changeset/pre.json')" - run: pnpm changeset pre enter pre + run: vp changeset pre enter pre - name: Determine dist-tag id: dist-tag run: | @@ -49,16 +52,14 @@ jobs: id: changesets uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1.8.0 with: - version: pnpm run changeset:version - publish: pnpm run changeset:publish ${{ steps.dist-tag.outputs.tag && format('--tag {0}', steps.dist-tag.outputs.tag) }} + version: vp run changeset:version + publish: vp run changeset:publish ${{ steps.dist-tag.outputs.tag && format('--tag {0}', steps.dist-tag.outputs.tag) }} title: 'ci: Version Packages' commit: 'ci: changeset release' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_OPTIONS: --max-old-space-size=8192 - name: Create GitHub Release if: steps.changesets.outputs.published == 'true' run: node scripts/create-github-release.mjs ${{ steps.dist-tag.outputs.prerelease == 'true' && '--prerelease' }} ${{ steps.dist-tag.outputs.latest == 'true' && '--latest' }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} diff --git a/.nvmrc b/.node-version similarity index 100% rename from .nvmrc rename to .node-version diff --git a/scripts/create-github-release.mjs b/scripts/create-github-release.mjs index cd009cd9b7..ea345320e2 100644 --- a/scripts/create-github-release.mjs +++ b/scripts/create-github-release.mjs @@ -6,7 +6,7 @@ import { execSync, execFileSync } from 'node:child_process' import { tmpdir } from 'node:os' const rootDir = path.join(import.meta.dirname, '..') -const ghToken = process.env.GH_TOKEN || process.env.GITHUB_TOKEN +const ghToken = process.env.GITHUB_TOKEN // Resolve GitHub usernames from commit author emails const usernameCache = {} From 453bdd9d4488931eddfc8ab231c1957e4da2b8dd Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Tue, 3 Nov 2026 08:06:47 +1100 Subject: [PATCH 2/2] Remove unnecessary defaults --- .github/workflows/autofix.yml | 3 --- .github/workflows/benchmarks.yml | 3 --- .github/workflows/bundle-size.yml | 6 ------ .github/workflows/pr.yml | 9 --------- .github/workflows/release.yml | 3 --- 5 files changed, 24 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index 863f82dcb3..621363cd2a 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -22,9 +22,6 @@ jobs: persist-credentials: false - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Fix formatting run: vp run format - name: Generate labeler config diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index c220bc3ea1..e53c5ce3b7 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -72,9 +72,6 @@ jobs: - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false # Run the build outside of the CodSpeed action to avoid being slowed by intrumentation overhead. # (and then run the task itself with --excludeTaskDependencies) diff --git a/.github/workflows/bundle-size.yml b/.github/workflows/bundle-size.yml index e1bea39e14..36b0ba1c67 100644 --- a/.github/workflows/bundle-size.yml +++ b/.github/workflows/bundle-size.yml @@ -49,9 +49,6 @@ jobs: - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Measure Bundle Size run: vp run benchmark:bundle-size --outputStyle=stream --skipRemoteCache @@ -136,9 +133,6 @@ jobs: - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Measure Bundle Size run: vp run benchmark:bundle-size --outputStyle=stream --skipRemoteCache diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index eed87ef0cc..82b33e4b90 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -37,9 +37,6 @@ jobs: run: npx nx-cloud start-workers - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Get base and head commits for `nx affected` uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1 with: @@ -63,9 +60,6 @@ jobs: persist-credentials: false - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Build Packages run: vp run build:all - name: Publish Previews @@ -83,8 +77,5 @@ jobs: persist-credentials: false - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Changeset Preview uses: TanStack/config/.github/changeset-preview@e4b48f16568324f76f467aa4c2aac2f05db632c3 # main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a7f4be02e..4a2366b5c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,6 @@ jobs: persist-credentials: true # changesets/action pushes Release PR commits - name: Setup Vite+ uses: voidzero-dev/setup-vp@cab1ab9eaff52d4857875f4f2c016e36af8f2c76 # v1.22.0 - with: - run-install: true - cache: false - name: Run Build run: vp run build:all - name: Enter Pre-Release Mode