From 8b96e0ab982a6a45c15f9541355c06ae64a7d6ee Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Tue, 14 Jun 2022 19:55:48 +0530 Subject: [PATCH] Fix nodejs version in actions (#627) * Update prod-deploy.yml * Update netlify-dev.yml * Update build-pull-request.yml * Update build-pull-request.yml * Update netlify-dev.yml * Update prod-deploy.yml Co-authored-by: Krishan <33421343+kfiven@users.noreply.github.com> --- .github/workflows/build-pull-request.yml | 4 ++++ .github/workflows/netlify-dev.yml | 4 ++++ .github/workflows/prod-deploy.yml | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/build-pull-request.yml b/.github/workflows/build-pull-request.yml index e5102a3..e57acd9 100644 --- a/.github/workflows/build-pull-request.yml +++ b/.github/workflows/build-pull-request.yml @@ -12,6 +12,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3.0.2 + - name: Setup node + uses: actions/setup-node@v3.3.0 + with: + node-version: 17.9.0 - name: Build app run: npm ci && npm run build - name: Upload artifact diff --git a/.github/workflows/netlify-dev.yml b/.github/workflows/netlify-dev.yml index bd9d163..a164695 100644 --- a/.github/workflows/netlify-dev.yml +++ b/.github/workflows/netlify-dev.yml @@ -14,6 +14,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3.0.2 + - name: Setup node + uses: actions/setup-node@v3.3.0 + with: + node-version: 17.9.0 - name: Build and deploy to Netlify uses: jsmrcaga/action-netlify-deploy@fb6a5f936a4b06a8f7793e69fc5a022ffe39807a with: diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 1277854..4d05c68 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -11,6 +11,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3.0.2 + - name: Setup node + uses: actions/setup-node@v3.3.0 + with: + node-version: 17.9.0 - name: Build run: | npm ci @@ -45,6 +49,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3.0.2 + - name: Setup node + uses: actions/setup-node@v3.3.0 + with: + node-version: 17.9.0 - name: Build and deploy to Netlify uses: jsmrcaga/action-netlify-deploy@fb6a5f936a4b06a8f7793e69fc5a022ffe39807a with: