Merge pull request #1553 from bervProject/dependabot/npm_and_yarn/rea… #3416
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
SKIP_PREFLIGHT_CHECK: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install | |
run: yarn --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: yarn build | |
env: | |
CI: false | |
PUBLIC_URL: /my-personal-web-react/ | |
# - name: Test | |
# run: yarn test | |
#- name: Upload Codecov | |
# run: bash <(curl -s https://codecov.io/bash) | |
# if: ${{ matrix.node-version == '14.x' }} | |
# - name: Deploy | |
# if: ${{ github.event_name == 'push' && matrix.node-version == '18.x' }} | |
# uses: peaceiris/actions-gh-pages@v3 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: ./build |