Skip to content

Commit 6da686d

Browse files
committed
ci: supply paths to deno deps cache action
1 parent b4ebb94 commit 6da686d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/actions/fn-setup/action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ runs:
1717
uses: denoland/setup-deno@v2
1818
env:
1919
DENO_CACHE_SLICE_NAME: deno
20-
# Don't add more paths below, since they'll be invalidated whenever Deno deps change
21-
# Yoinked from https://github.com/actions/cache/blob/main/examples.md#linux
22-
DENO_DEPS_CACHE_PATH: |
23-
~/.deno
24-
~/.cache/deno
2520
with:
2621
deno-version: 2.x
2722
cache: true
2823
cache-hash: ${{ runner.os }}-${{ env.DENO_CACHE_SLICE_NAME }}@${{ inputs.cache-version }}
2924

3025
- name: Set up Deno dependencies cache
3126
uses: actions/cache@v3
27+
env:
28+
# Don't add more paths below, since they'll be invalidated whenever Deno deps change
29+
# Yoinked from https://github.com/actions/cache/blob/main/examples.md#linux
30+
DENO_DEPS_CACHE_PATH: |
31+
~/.deno
32+
~/.cache/deno
3233
with:
3334
path: ${{ env.DENO_DEPS_CACHE_PATH }}
3435
key: ${{ runner.os }}-${{ inputs.deno-deps-cache-slice-name }}@${{ inputs.cache-version }}-${{ hashFiles('deno.lock') }}

0 commit comments

Comments
 (0)