Skip to content

Commit

Permalink
Merge pull request #110 from Cow-Coder/ci/fix-cache
Browse files Browse the repository at this point in the history
ci: 删除无作用的缓存
  • Loading branch information
20empty authored Aug 25, 2022
2 parents d72bfc7 + e5db4ab commit 595a750
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 51 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ jobs:
registry-url: https://registry.npmjs.com/
cache: 'pnpm'

- name: Cache ~/.pnpm-store
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-deploy-
${{ runner.os }}-
- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/deploy-editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ jobs:
registry-url: https://registry.npmjs.com/
cache: 'pnpm'

- name: Cache ~/.pnpm-store
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-deploy-
${{ runner.os }}-
- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ jobs:
registry-url: https://registry.npmjs.com/
cache: 'pnpm'

- name: Cache ~/.pnpm-store
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-deploy-
${{ runner.os }}-
- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:
with:
fetch-depth: 0

# - name: Add dev branch
# run: git branch dev origin/main

- name: Setup pnpm
uses: pnpm/action-setup@v2

Expand All @@ -39,18 +36,6 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Cache ~/.pnpm-store
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-deploy-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-deploy-
${{ runner.os }}-
- name: Install dependencies
run: pnpm i --frozen-lockfile

Expand Down

0 comments on commit 595a750

Please sign in to comment.