From ffbd18238f0e2f26e3cbef299b9d65368f72ad78 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Fri, 10 Sep 2021 15:27:06 +0530 Subject: fix: 'recipes' (using 'pnpm') will coexist with 'ferdi' (using 'npm') (#1905) backported from https://github.com/getferdi/ferdi/pull/1826 Co-authored-by: Markus Hatvan --- .github/workflows/dependency-updates.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.github/workflows/dependency-updates.yml') diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 5d7d64efc..aa3fe6d39 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -22,6 +22,7 @@ jobs: - name: Set env vars run: | echo "NPM_CACHE=$HOME/.npm" >> $GITHUB_ENV + echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV - name: Checkout code along with submodules uses: actions/checkout@v2 with: @@ -40,10 +41,22 @@ jobs: restore-keys: | ${{ runner.os }}-14.17-build-${{ env.cache-name }}- ${{ runner.os }}-14.17-build- + - name: Cache .pnpm-store + 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: node-version: 14.17.6 + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 6.14.7 + run_install: true - name: Uninstall locally and reinstall global npm modules run: | npm uninstall node-gyp -- cgit v1.2.3-70-g09d2