Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
chore: move actions to node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchis committed May 1, 2024
1 parent 119b2e4 commit 6de9c3e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: deploy (manual)
on:
workflow_dispatch:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -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

Expand All @@ -25,4 +29,4 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
folder: out # The folder the action should deploy.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/schedule_deploy.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand All @@ -25,4 +29,4 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
folder: out # The folder the action should deploy.

0 comments on commit 6de9c3e

Please sign in to comment.