From fcd4e2de9c61bef33b1ed458cdda51b4651e5af2 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 10 Sep 2021 16:00:04 +0530 Subject: add caching of pnpm modules; do not install recursively since it causes a failure in the main repo --- .github/workflows/ferdi-builds.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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: restore-keys: | build-${{ env.cache-name }}- build- + - name: Cache pnpm modules + uses: actions/cache@v2 + env: + cache-name: cache-pnpm-store + with: + path: ${{ env.PNPM_CACHE }} + key: ${{ runner.os }}-14.17-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Use Node.js 14.17.6 uses: actions/setup-node@v2 with: @@ -53,6 +60,5 @@ jobs: uses: pnpm/action-setup@v2.0.1 with: version: 6.14.7 - run_install: true - name: Install node dependencies recursively run: pnpm i && pnpm run package -- cgit v1.2.3-54-g00ecf