Fixed node version to 20 using volta #357
Workflow file for this run
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: Lint and Build | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [main, develop] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Volta | |
uses: volta-cli/action@v4 | |
- name: Check versions | |
run: node -v && npm -v && yarn -v | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn run lint --max-warnings=0 | |
- name: Build | |
run: yarn run build |