Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,50 +81,6 @@ jobs:
run: ${{ runner.os == 'Linux' && 'xvfb-run -a' || '' }} pnpm test:integration --label "VS Code ${{ matrix.vscode-version }}"
shell: bash

chromatic:
name: Chromatic
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
persist-credentials: false

- name: Setup pnpm, Node.js, and dependencies
uses: ./.github/actions/setup

# PR builds gate on visual review; mainline auto-accepts.
- name: Publish to Chromatic (non-mainline)
if: github.ref != 'refs/heads/main' && github.repository_owner == 'coder'
uses: chromaui/action@4a45535b6910c0b99226ebcb7648faf88fb1ee2e # v18.0.1
env:
NODE_OPTIONS: "--max_old_space_size=4096"
STORYBOOK: true
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: "storybook:ci"
exitOnceUploaded: true
exitZeroOnChanges: true
skip: "@(renovate/**|dependabot/**)"
onlyChanged: true
zip: true

# Auto-accept on mainline to avoid blocking CI after squash merges.
- name: Publish to Chromatic (mainline)
if: github.ref == 'refs/heads/main' && github.repository_owner == 'coder'
uses: chromaui/action@4a45535b6910c0b99226ebcb7648faf88fb1ee2e # v18.0.1
env:
NODE_OPTIONS: "--max_old_space_size=4096"
STORYBOOK: true
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
autoAcceptChanges: true
exitZeroOnChanges: true
buildScriptName: "storybook:build"
zip: true

package:
name: Package
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if (

// VS Code injects --vscode-font-family at runtime, but the upstream
// vscode-elements theme data omits it. Set a static default so
// Storybook (and Chromatic) renders with a predictable sans-serif
// Storybook renders with a predictable sans-serif
// stack instead of falling back to the browser default (Times).
const VSCODE_FONT_FAMILY =
'"Segoe WPC", "Segoe UI", system-ui, "Ubuntu", "Droid Sans", sans-serif';
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"build": "concurrently -g -n webviews,extension,compile-tests:integration \"pnpm build:webviews\" \"node esbuild.mjs\" \"pnpm compile-tests:integration\"",
"build:production": "cross-env NODE_ENV=production pnpm build",
"build:webviews": "pnpm -r --filter \"./packages/*\" --parallel build",
"chromatic": "chromatic",
"compile-tests:integration": "tsc -p test/integration --outDir out --noCheck",
"format": "prettier --write --cache --cache-strategy content .",
"format:check": "prettier --check --cache --cache-strategy content .",
Expand Down Expand Up @@ -821,7 +820,6 @@
"@vscode/vsce": "^3.9.2",
"babel-plugin-react-compiler": "catalog:",
"bufferutil": "^4.1.0",
"chromatic": "^18.0.1",
"coder": "catalog:",
"concurrently": "^10.0.3",
"cross-env": "^10.1.0",
Expand Down
Loading