Skip to content

Add support for Circuit UI's ESLint plugin (#929) #1837

Add support for Circuit UI's ESLint plugin (#929)

Add support for Circuit UI's ESLint plugin (#929) #1837

Workflow file for this run

name: Continuous Integration
on: [push]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Security audit
run: npm run check:security
- name: Check licenses
run: npm run check:licenses
- name: Lint
run: npm run lint
- name: Unit test
run: npm run test:ci
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Create release PR or publish to npm
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/canary') && matrix.node == 18
uses: changesets/action@master
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}