diff --git a/.github/workflows/build-client.yml b/.github/workflows/build-client.yml index 0bcfd1d..c06044d 100644 --- a/.github/workflows/build-client.yml +++ b/.github/workflows/build-client.yml @@ -431,8 +431,12 @@ jobs: uses: pnpm/action-setup@v4 with: version: ${{ env.PNPM_VERSION }} - # 默认 dest 是 ~/setup-pnpm,而 ~ 是中完整性的,低完整性写不进去。 - dest: C:\Users\admin\runner\windows\cache\ci-pnpm + # 两个原因不用默认的 ~/setup-pnpm(中完整性写不进去),也不用固定的 + # cache 目录:pnpm 会把自己算出来的 store 建在这个 dest 里面,下一次运行 + # 自安装器清理旧目录时就炸了 —— + # ENOTEMPTY: directory not empty, rmdir '...\ci-pnpm\node_modules\.bin\store\v11\projects' + # 所以放到本次运行的 work 目录下(每次都是干净的)。 + dest: ${{ github.workspace }}\..\ci-pnpm - name: 装 Node uses: actions/setup-node@v4