diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-09-10 15:27:06 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 15:27:06 +0530 |
commit | ffbd18238f0e2f26e3cbef299b9d65368f72ad78 (patch) | |
tree | c51efa3627996613f86fd3acd340c77431629839 /.github/workflows/dependency-updates.yml | |
parent | chore: preconditions for node 16 (#1904) (diff) | |
download | ferdium-app-ffbd18238f0e2f26e3cbef299b9d65368f72ad78.tar.gz ferdium-app-ffbd18238f0e2f26e3cbef299b9d65368f72ad78.tar.zst ferdium-app-ffbd18238f0e2f26e3cbef299b9d65368f72ad78.zip |
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 <markus_hatvan@aon.at>
Diffstat (limited to '.github/workflows/dependency-updates.yml')
-rw-r--r-- | .github/workflows/dependency-updates.yml | 13 |
1 files changed, 13 insertions, 0 deletions
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: | |||
22 | - name: Set env vars | 22 | - name: Set env vars |
23 | run: | | 23 | run: | |
24 | echo "NPM_CACHE=$HOME/.npm" >> $GITHUB_ENV | 24 | echo "NPM_CACHE=$HOME/.npm" >> $GITHUB_ENV |
25 | echo "PNPM_CACHE=$HOME/.pnpm-store" >> $GITHUB_ENV | ||
25 | - name: Checkout code along with submodules | 26 | - name: Checkout code along with submodules |
26 | uses: actions/checkout@v2 | 27 | uses: actions/checkout@v2 |
27 | with: | 28 | with: |
@@ -40,10 +41,22 @@ jobs: | |||
40 | restore-keys: | | 41 | restore-keys: | |
41 | ${{ runner.os }}-14.17-build-${{ env.cache-name }}- | 42 | ${{ runner.os }}-14.17-build-${{ env.cache-name }}- |
42 | ${{ runner.os }}-14.17-build- | 43 | ${{ runner.os }}-14.17-build- |
44 | - name: Cache .pnpm-store | ||
45 | uses: actions/cache@v2 | ||
46 | env: | ||
47 | cache-name: cache-pnpm-store | ||
48 | with: | ||
49 | path: ${{ env.PNPM_CACHE }} | ||
50 | key: ${{ runner.os }}-14.17-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
43 | - name: Use Node.js 14.17.6 | 51 | - name: Use Node.js 14.17.6 |
44 | uses: actions/setup-node@v2 | 52 | uses: actions/setup-node@v2 |
45 | with: | 53 | with: |
46 | node-version: 14.17.6 | 54 | node-version: 14.17.6 |
55 | - name: Install pnpm | ||
56 | uses: pnpm/action-setup@v2.0.1 | ||
57 | with: | ||
58 | version: 6.14.7 | ||
59 | run_install: true | ||
47 | - name: Uninstall locally and reinstall global npm modules | 60 | - name: Uninstall locally and reinstall global npm modules |
48 | run: | | 61 | run: | |
49 | npm uninstall node-gyp | 62 | npm uninstall node-gyp |