Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(ci): keep the nightly's pnpm store off the runner's pnpm install
Elian Dorand6f6a9afa011
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.ymlindex 6f3cb7cbb9..19678e38f3 100644--- a/.github/workflows/nightly.yml+++ b/.github/workflows/nightly.yml@@ -65,19 +65,33 @@ jobs:shell: bashforge_platform: linuxruns-on: ${{ matrix.os.image }}+ env:+ # "Update nightly version" rewrites the version field of six workspace manifests, which+ # makes the next `pnpm run` re-install the whole workspace even though the dependency+ # graph is unchanged. "Install dependencies" below is the authoritative install.+ PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: "false"steps:- uses: actions/checkout@v7with:persist-credentials: false- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0+ # pnpm derives its store from PNPM_HOME, which pnpm/action-setup points inside the+ # directory it reinstalls on every run. The win-signing runner is persistent, so the+ # store has to sit somewhere that survives between jobs, and packages have to be copied+ # out of it: rebuilding better-sqlite3 and electron-forge's pruning both write into+ # node_modules, which a hardlink would carry back into the shared store.+ - name: Keep the pnpm store outside the pnpm installation+ if: ${{ matrix.os.name == 'windows' }}+ shell: powershell+ run: |+ Add-Content -Path $env:GITHUB_ENV -Value "PNPM_CONFIG_STORE_DIR=C:\pnpm-store"+ Add-Content -Path $env:GITHUB_ENV -Value "PNPM_CONFIG_PACKAGE_IMPORT_METHOD=copy"- name: Set up node & dependenciesuses: actions/setup-node@v7with:node-version: 24- name: Install dependenciesrun: pnpm install --frozen-lockfile- env:- npm_config_package_import_method: copy- name: Update nightly versionrun: pnpm run chore:ci-update-nightly-version- name: Run the build