From 18a30f0bd60351d3337c4a7b53b87890152cf856 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 12 Oct 2022 07:27:11 +0530 Subject: Missed installing dependencies before running npm scripts --- .github/workflows/builds.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 8ee21fb7d..e9f58c5c7 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -51,6 +51,15 @@ jobs: if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} with: node-version-file: ".nvmrc" + - name: Install npm + if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} + run: npm i -gf "npm@$(node -p 'require("./package.json").engines.npm')" && npm -v + - name: Install pnpm + if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} + run: npm i -gf "pnpm@$(node -p 'require("./recipes/package.json").engines.pnpm')" && pnpm -v + - name: Install node dependencies + if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} + run: npm i - id: should_run name: Check whether there are any commits since this run was last triggered and push them and/or set the output if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && contains(github.event.inputs.message, '[nightly branch]')) }} -- cgit v1.2.3-54-g00ecf