fixed lint error #2
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 & Release | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| name: Lint & Typecheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| cache: true | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run Biome check | |
| run: bun run check | |
| - name: Run typecheck | |
| run: bun run typecheck | |
| build-and-release: | |
| name: Build & Release | |
| needs: check | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| cache: true | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build all platforms | |
| run: bun run build:all | |
| - name: Generate checksums | |
| run: | | |
| cd build | |
| sha256sum * > checksums.txt | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| files: | | |
| build/treeEx-linux-x64 | |
| build/treeEx-linux-arm64 | |
| build/treeEx-darwin-x64 | |
| build/treeEx-darwin-arm64 | |
| build/treeEx-windows-x64.exe | |
| build/checksums.txt |