diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 9337d6e..29ea708 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -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 @@ -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 }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index da13245..37e0ad8 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -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 \ No newline at end of file + - 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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ba38e52..90e08cb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d7c77e1..3483b44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac503bf..a340d25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file + npm test