name: Preview on: pull_request: branches: [master] paths-ignore: - 'packages/docs/**' - 'openspec/**' - '*.md' concurrency: group: preview-${{ github.event.pull_request.number }} cancel-in-progress: true permissions: contents: read jobs: preview: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - uses: ./.github/actions/setup-bun - name: Format check run: bun run format:check - run: bun run build - name: Upload preview artifact uses: actions/upload-artifact@v7 with: name: preview-dist path: dist if-no-files-found: error retention-days: 1