Merge pull request #787 from CSSSR/news-250 #1144
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: Eslint check | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run: | |
name: Eslint check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download CSSSR actions | |
uses: actions/checkout@v2 | |
with: | |
repository: CSSSR/actions | |
ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }} | |
path: actions | |
- uses: actions/checkout@v2 | |
with: | |
path: new_blog | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-node@v2-beta | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@csssr' | |
- name: Install dependencies | |
working-directory: new_blog | |
run: yarn --frozen-lockfile | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_REGISTRY_TOKEN }} | |
- name: Run Eslint | |
working-directory: new_blog | |
run: yarn lint:js |