Skip to content

chore: Configure Renovate - autoclosed #18

chore: Configure Renovate - autoclosed

chore: Configure Renovate - autoclosed #18

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "ESLint"
on: # yamllint disable-line rule:truthy
push:
paths:
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.json"
pull_request:
paths:
- "**.js"
- "**.jsx"
- "**.ts"
- "**.tsx"
- "**.json"
# Enable this to use the github packages
# yamllint disable-line rule:comments
#env:
# package: "@${{ github.repository }}"
# registry_url: "https://npm.pkg.github.com"
# scope: "${{ github.repository_owner }}"
jobs:
eslint:
name: "ESLint"
runs-on: "ubuntu-latest"
steps:
- name: "Git checkout"
uses: "actions/checkout@v2"
with:
fetch-depth: 0
persist-credentials: false
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- uses: "pnpm/action-setup@v2.0.1"
with:
version: 6
- name: "Set node version to 16.x"
uses: "actions/setup-node@v2"
with:
node-version: "16.x"
# Enable this to use the github packages
# registry-url: "${{ env.registry_url }}"
# Defaults to the user or organization that owns the workflow file
# scope: "@${{ env.scope }}"
- name: "Install packages"
run: "pnpm install --frozen-lockfile"
- run: "yarn run lint:eslint"