Skip to content

fix(stats): surface summary-stat cache write side via telemetry (#951) #1981

fix(stats): surface summary-stat cache write side via telemetry (#951)

fix(stats): surface summary-stat cache write side via telemetry (#951) #1981

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
# - 'none-never'
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: pnpm/action-setup@v6
with:
version: 9.10.0
# action-setup-pnpm's `run_install: true` shortcut does `pnpm install
# --recursive` from the repo root, which picks up package.json files
# outside the workspace (e.g. tests/integration-tests/built-pkg/). Scope the
# install to `packages/` where pnpm-workspace.yaml lives — matches
# checks.yml.
- name: Install pnpm dependencies
working-directory: packages
run: pnpm install --frozen-lockfile
- uses: astral-sh/setup-uv@v7
- name: Run tests
working-directory: ./packages/buckaroo-js-core
run: |
pnpm build-storybook
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - name: Install mamba
# uses: mamba-org/setup-micromamba@v1
# with:
# micromamba-version: '1.5.8-0'
# environment-file: docs/build-environment.yml
# cache-environment: true
# - name: Build the JupyterLite site
# shell: bash -l {0}
# run: |
# cd docs
# jupyter lite build --contents ./example-notebooks --output-dir ./_output
- name: Merge screenshots into Storybook output
run: |
git fetch origin gh-pages || true
if git rev-parse origin/gh-pages &>/dev/null; then
git checkout origin/gh-pages -- screenshots/ 2>/dev/null || true
if [ -d screenshots ]; then
cp -r screenshots/ ./packages/buckaroo-js-core/dist/storybook/screenshots/
fi
fi
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: ./packages/buckaroo-js-core/dist/storybook
deploy:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4