From 55616f6dfc056be1563022954ad4d94226bec0da Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 24 Apr 2022 19:54:49 -0500 Subject: Remove hardcoding of 'npm' and 'pnpm' version in CI scripts --- .github/workflows/dependency-updates.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 1977ab2a7..88a9541bd 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -36,11 +36,9 @@ jobs: with: node-version-file: '.nvmrc' - name: Install npm - run: npm i -gf npm@8.7.0 + run: npm i -gf "npm@$(node -p 'require("./package.json").engines.npm')" && npm -v - name: Install pnpm - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.32.8 + run: npm i -gf "pnpm@$(node -p 'require("./recipes/package.json").engines.pnpm')" && pnpm -v - name: Install node dependencies run: npm i - name: Update submodules -- cgit v1.2.3-54-g00ecf