Use correct CircleCI environment variable for pull request detection #4662
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: [master] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
node_modules | |
packages/*/node_modules | |
packages/core/.local-chromium | |
key: > | |
${{ runner.os }}/node-14/ | |
${{ hashFiles('.github/.cache-key') }}/ | |
${{ hashFiles('**/yarn.lock') }} | |
restore-keys: > | |
${{ runner.os }}/node-14/ | |
${{ hashFiles('.github/.cache-key') }}/ | |
- run: yarn | |
- run: yarn lint |