feat(data): flashing/upload troubleshooting coverage #12
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # pnpm version comes from the packageManager field in package.json | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - run: pnpm typecheck | |
| - run: pnpm lint:check | |
| - run: pnpm test | |
| # Fail early if the published tarball would be broken (missing entry | |
| # files, stray exports, etc.) | |
| - name: Verify npm package contents | |
| run: cd packages/xiao-assistant && pnpm pack --dry-run | |
| - name: Lint package exports (publint) | |
| run: cd packages/xiao-assistant && npx --yes publint |