From 2390da9cf26fa9fd532d742d3bedb0b55ea07d49 Mon Sep 17 00:00:00 2001 From: BilalQamar Date: Thu, 30 Jun 2022 15:31:57 +0500 Subject: [PATCH 1/2] refactor: switched to ci to install dependencies --- .github/workflows/node-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index c520f511..b2ff2aa7 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -24,7 +24,7 @@ jobs: node-version: ${{ matrix.node }} - name: Install dependencies - run: npm install + run: npm ci - name: Pre-Tests setup run: npm i -g gatsby From 82ca4796007e198f595db14824530e2087305d8c Mon Sep 17 00:00:00 2001 From: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com> Date: Tue, 16 Aug 2022 16:37:31 +0500 Subject: [PATCH 2/2] fix: updated ci workflow to resolve dependency issue --- .github/workflows/node-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index b2ff2aa7..3f1c2c5f 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -14,6 +14,7 @@ jobs: strategy: matrix: node: [16] + npm: [8.5.x] steps: - name: Checkout uses: actions/checkout@v2 @@ -23,6 +24,8 @@ jobs: with: node-version: ${{ matrix.node }} + - run: npm install -g npm@${{ matrix.npm }} + - name: Install dependencies run: npm ci