fix: run build before publishing packages (#1057) #51
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: | |
| branches: [ "main" ] | |
| permissions: read-all | |
| jobs: | |
| eslint: | |
| name: Run eslint scanning | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@65d868f8d4d85d7d4abb7de0875cde3fcc8798f5 | |
| with: | |
| node-version: 20.x | |
| - name: Install ESLint | |
| run: | | |
| npm install --ignore-scripts | |
| npm install --ignore-scripts @microsoft/eslint-formatter-sarif@3.1.0 | |
| - name: Run ESLint | |
| env: | |
| SARIF_ESLINT_IGNORE_SUPPRESSED: "true" | |
| run: npm run lint -- | |
| --config eslint.config.js | |
| --ext .js,.jsx,.ts,.tsx | |
| --format @microsoft/eslint-formatter-sarif | |
| --output-file eslint-results.sarif | |
| continue-on-error: true | |
| - name: Upload analysis results to GitHub | |
| uses: github/codeql-action/upload-sarif@b2951d2a1ed70de8ec57301118b487b35c13595a | |
| with: | |
| sarif_file: eslint-results.sarif | |
| wait-for-processing: true |