aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-10 16:00:04 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-10 16:00:04 +0530
commitfcd4e2de9c61bef33b1ed458cdda51b4651e5af2 (patch)
tree060627124b2e54a551ffc6066ce8bc9a9698e5b1 /.github
parentRevert "chore: use in-built caching when installing node." (diff)
downloadferdium-recipes-fcd4e2de9c61bef33b1ed458cdda51b4651e5af2.tar.gz
ferdium-recipes-fcd4e2de9c61bef33b1ed458cdda51b4651e5af2.tar.zst
ferdium-recipes-fcd4e2de9c61bef33b1ed458cdda51b4651e5af2.zip
add caching of pnpm modules; do not install recursively since it causes a failure in the main repo
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ferdi-builds.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/ferdi-builds.yml b/.github/workflows/ferdi-builds.yml
index 9272126..4518bd2 100644
--- a/.github/workflows/ferdi-builds.yml
+++ b/.github/workflows/ferdi-builds.yml
@@ -45,6 +45,13 @@ jobs:
45 restore-keys: | 45 restore-keys: |
46 build-${{ env.cache-name }}- 46 build-${{ env.cache-name }}-
47 build- 47 build-
48 - name: Cache pnpm modules
49 uses: actions/cache@v2
50 env:
51 cache-name: cache-pnpm-store
52 with:
53 path: ${{ env.PNPM_CACHE }}
54 key: ${{ runner.os }}-14.17-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
48 - name: Use Node.js 14.17.6 55 - name: Use Node.js 14.17.6
49 uses: actions/setup-node@v2 56 uses: actions/setup-node@v2
50 with: 57 with:
@@ -53,6 +60,5 @@ jobs:
53 uses: pnpm/action-setup@v2.0.1 60 uses: pnpm/action-setup@v2.0.1
54 with: 61 with:
55 version: 6.14.7 62 version: 6.14.7
56 run_install: true
57 - name: Install node dependencies recursively 63 - name: Install node dependencies recursively
58 run: pnpm i && pnpm run package 64 run: pnpm i && pnpm run package