feat: update the home page to flashtrace 0.12.0 #40
Workflow file for this run
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: | |
| pull_request: | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # mirrors the build job of deploy.yml (minus the dispatch payload, which | |
| # only exists on releases) so a green check means the deploy build passes | |
| # on the same inputs - keep the two in sync | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| # An empty tag would make the checkout below silently use the default | |
| # branch, so fail loudly instead - same guard as in deploy.yml. | |
| - name: Resolve flashtrace release ref | |
| id: ref | |
| run: | | |
| tag=$(gh release view --repo flashtrace/flashtrace --json tagName --jq .tagName) || true | |
| if [ -z "$tag" ]; then | |
| echo "::error::no release tag: flashtrace/flashtrace has no published release" | |
| exit 1 | |
| fi | |
| echo "tag=$tag" >> "$GITHUB_OUTPUT" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| repository: flashtrace/flashtrace | |
| ref: ${{ steps.ref.outputs.tag }} | |
| path: flashtrace | |
| - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| env: | |
| FLASHTRACE_REF: ${{ steps.ref.outputs.tag }} | |
| # annotations only - REPORT_ISSUE is deliberately unset, because a PR | |
| # should not file an issue about upstream content it did not touch. | |
| # Filing belongs to the deploy; here this only makes a skipped schema | |
| # visible while reviewing. | |
| - name: Report skipped schemas | |
| if: always() | |
| continue-on-error: true | |
| run: node .github/scripts/report-schema-problems.mjs | |
| # also exercised here so artifact packaging failures surface in CI, | |
| # not first during a deploy | |
| - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: dist | |
| retention-days: 1 |