2022-04-06 01:06:34 -05:00
|
|
|
name: Upload Annotations
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
upload-annotations:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-04-22 04:13:21 -05:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-06 01:06:34 -05:00
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2022-05-19 21:49:53 -05:00
|
|
|
uses: logto-io/actions-node-pnpm-run-steps@v1.2.2
|
2022-04-06 01:06:34 -05:00
|
|
|
|
|
|
|
- name: Prepack
|
|
|
|
run: pnpm prepack
|
|
|
|
|
|
|
|
- name: Lint with Report
|
|
|
|
run: pnpm -- lerna run --parallel lint:report && node merge-eslint-reports.js
|
|
|
|
|
|
|
|
- name: Annotate Code Linting Results
|
|
|
|
uses: ataylorme/eslint-annotate-action@1.2.0
|
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Upload ESLint report
|
2022-04-22 04:13:31 -05:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-04-06 01:06:34 -05:00
|
|
|
with:
|
|
|
|
name: eslint_report.json
|
|
|
|
path: eslint_report.json
|