From 0b813afa6817325dbe1f801e8a0973648aa9c69d Mon Sep 17 00:00:00 2001 From: ThomasCardin Date: Wed, 17 Jan 2024 18:25:00 -0500 Subject: [PATCH] issue #66: install specific version of npm inside gh pages deployment --- .github/workflows/gh-deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index c483e9f..15e1d32 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -19,7 +19,11 @@ jobs: - uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} - npm-version: '9.8.1' + + - name: Install specific NPM version + run: | + npm install -g npm@9.8.1 + npm --version - name: Install Dependencies run: npm install @@ -29,7 +33,7 @@ jobs: env: REACT_APP_BACKEND_URL: ${{ secrets.REACT_APP_BACKEND_URL }} - - name: Deploy to GitHub Pages + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}