From 274261bbfb83f2d94b7aa725ddf355a2700937dc Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Fri, 20 Dec 2024 01:27:07 +0900 Subject: [PATCH] chore(.github/workflows): add 'cache-dependency-path' in 'actions/setup-node' for restoring 'pnpm' cache --- .github/workflows/compressed-size-action.yml | 1 + .github/workflows/cr.yml | 1 + .github/workflows/lint-and-type.yml | 1 + .github/workflows/publish.yml | 1 + .github/workflows/test-multiple-builds.yml | 1 + .github/workflows/test-multiple-versions.yml | 2 +- .github/workflows/test-old-typescript.yml | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compressed-size-action.yml b/.github/workflows/compressed-size-action.yml index 278d0b2a01..dfce78f10b 100644 --- a/.github/workflows/compressed-size-action.yml +++ b/.github/workflows/compressed-size-action.yml @@ -12,6 +12,7 @@ jobs: with: node-version: 20 cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - uses: preactjs/compressed-size-action@v2 with: pattern: './dist/**/*.{js,mjs}' diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index 0ea400905e..fc932e1a34 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -12,6 +12,7 @@ jobs: with: node-version: 20 cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install - run: pnpm build - run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*' diff --git a/.github/workflows/lint-and-type.yml b/.github/workflows/lint-and-type.yml index f13ceb8058..2f0e487511 100644 --- a/.github/workflows/lint-and-type.yml +++ b/.github/workflows/lint-and-type.yml @@ -16,6 +16,7 @@ jobs: with: node-version: 20 cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install - run: pnpm test:format - run: pnpm test:types diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8613b881d3..edb378c906 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,7 @@ jobs: node-version: 20 registry-url: 'https://registry.npmjs.org' cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install - run: pnpm test - run: pnpm build diff --git a/.github/workflows/test-multiple-builds.yml b/.github/workflows/test-multiple-builds.yml index 2680c54355..8cb6a8b131 100644 --- a/.github/workflows/test-multiple-builds.yml +++ b/.github/workflows/test-multiple-builds.yml @@ -21,6 +21,7 @@ jobs: with: node-version: 20 cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install - run: pnpm build - name: Patch for DEV-ONLY diff --git a/.github/workflows/test-multiple-versions.yml b/.github/workflows/test-multiple-versions.yml index 5aea49a78f..9ee43969e6 100644 --- a/.github/workflows/test-multiple-versions.yml +++ b/.github/workflows/test-multiple-versions.yml @@ -41,7 +41,7 @@ jobs: node-version: 20 cache: 'pnpm' cache-dependency-path: '**/pnpm-lock.yaml' - - run: pnpm install --frozen-lockfile + - run: pnpm install - name: Test ${{ matrix.react }} ${{ matrix.devtools-skip }} run: | pnpm add -D react@${{ matrix.react }} react-dom@${{ matrix.react }} diff --git a/.github/workflows/test-old-typescript.yml b/.github/workflows/test-old-typescript.yml index 3ebc39a5a5..48fcb5b543 100644 --- a/.github/workflows/test-old-typescript.yml +++ b/.github/workflows/test-old-typescript.yml @@ -31,6 +31,7 @@ jobs: with: node-version: 20 cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' - run: pnpm install - run: pnpm build - name: Patch for all TS