CI: remove release version input and fix trusted publish #27
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: Pull request | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| jobs: | |
| # Build job | |
| builddev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Not needed if lastUpdated is not enabled | |
| - name: Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Lint | |
| run: | | |
| bun run lint | |
| - name: Build | |
| run: | | |
| bun run build | |
| - name: Test | |
| run: | | |
| set -euo pipefail | |
| bunx tsc --noEmit | |
| for f in $(find src -type f -name '*.test.ts' | sort); do | |
| echo "Running $f" | |
| bun test "$f" | |
| done |