ci(codex-ui): add CI pipeline for npm publish #1027
This file contains hidden or 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 | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
eslint: | |
name: Run eslint check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Run ESLint | |
run: yarn lint | |
- name: Install @codexteam/ui dependencies | |
run: | | |
yarn install | |
working-directory: ./@codexteam/ui | |
- name: Run ESLint on @codexteam/ui | |
run: yarn lint | |
working-directory: ./@codexteam/ui |