From 6de9c3e490e8322ebfb24357f1faa828922f9f7b Mon Sep 17 00:00:00 2001 From: sanchis <12100597+sanchis@users.noreply.github.com> Date: Wed, 1 May 2024 15:20:15 +0200 Subject: [PATCH] chore: move actions to node 16 --- .github/workflows/deploy.yml | 14 +++++++++----- .github/workflows/main.yml | 5 +++++ .github/workflows/schedule_deploy.yml | 12 ++++++++---- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ca558483..d9b5d0948 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ name: deploy (manual) on: - workflow_dispatch: + workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest @@ -9,12 +9,16 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: + with: fetch-depth: 0 - + + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + - name: Install dependencies 👨🏻‍💻 run: npm ci - + - name: Run build 🏗 run: npm run build @@ -25,4 +29,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.4.1 with: branch: gh-pages # The branch the action should deploy to. - folder: out # The folder the action should deploy. \ No newline at end of file + folder: out # The folder the action should deploy. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e38c9aad7..73b1d5bf2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,6 +13,11 @@ jobs: NEW_INFECTED_URL: ${{ secrets.NEW_INFECTED_URL }} steps: - uses: actions/checkout@v3 + + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + - name: Install dependencies run: npm ci diff --git a/.github/workflows/schedule_deploy.yml b/.github/workflows/schedule_deploy.yml index 502b3cf2d..963f845c7 100644 --- a/.github/workflows/schedule_deploy.yml +++ b/.github/workflows/schedule_deploy.yml @@ -1,8 +1,8 @@ name: deploy-latest-log on: schedule: - - cron: '0 */6 * * 1-5' - workflow_dispatch: + - cron: "0 */6 * * 1-5" + workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest @@ -12,9 +12,13 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + - name: Install dependencies 👨🏻‍💻 run: npm ci --prefer-offline --no-audit - + - name: Run build 🏗 run: npm run build @@ -25,4 +29,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4.4.1 with: branch: gh-pages # The branch the action should deploy to. - folder: out # The folder the action should deploy. \ No newline at end of file + folder: out # The folder the action should deploy.