Add a better mechanism for variables management #4834
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 | |
on: | |
push: | |
branches: [$default-branch] | |
pull_request: | |
branches: | |
- "**" | |
workflow_dispatch: | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: yarn | |
cache-dependency-path: | | |
yarn.lock | |
docs/yarn.lock | |
- name: Install | |
run: yarn --frozen-lockfile | |
- name: Build | |
run: yarn build | |
- name: lint | |
run: yarn lint | |
- name: Check dependency versions | |
run: node scripts/check-dependencies.js | |
- name: Install website | |
working-directory: docs/ | |
run: yarn | |
- name: Lint website | |
working-directory: docs/ | |
run: yarn lint |