Skip to content

Commit

Permalink
fix: update workflow versions in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
roerohan committed Jun 9, 2024
1 parent a255ed3 commit cf4b243
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: npm install
Expand All @@ -41,4 +41,4 @@ jobs:
git diff --quiet && git diff --staged --quiet || git commit -m "fix(submodules): submodules were updated"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 23 additions & 23 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ name: Deploy to github.io

on:
push:
branches: [ main ]
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Set React environment using current directory
run: echo "PUBLIC_URL=/$(basename $(pwd))" >> $GITHUB_ENV
- name: Set React environment using current directory
run: echo "PUBLIC_URL=/$(basename $(pwd))" >> $GITHUB_ENV

- name: npm install, lint
run: |
git submodule update --init --recursive
export GENERATE_SOURCEMAP=false
npm install
npm run lint:fix
npm run build
env:
REACT_APP_BASE_URL: ${{ secrets.BACKEND_URL }}
- name: Deploy to github.io
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: build
- name: npm install, lint
run: |
git submodule update --init --recursive
export GENERATE_SOURCEMAP=false
npm install
npm run lint:fix
npm run build
env:
REACT_APP_BASE_URL: ${{ secrets.BACKEND_URL }}

- name: Deploy to github.io
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: npm install, lint
Expand All @@ -26,13 +26,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: npm install, build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: npm install, test
run: |
npm install
npm test
npm test

0 comments on commit cf4b243

Please sign in to comment.