Skip to content

Commit

Permalink
Add storybook to every PR
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-cooney authored Dec 11, 2022
1 parent bcdfc57 commit 240e494
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Storybook Publish

on: push

jobs:
storybook:
runs-on: ubuntu-latest
defaults:
run:
working-directory: react
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
- name: Publish Storybook to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
workingDir: react
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ package-lock.json
yarn-error.log
.parcel-cache/
storybook-static/
build-storybook.log
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "circuitsvis"
version = "1.32.2"
version = "1.33.0"
description = "Mechanistic Interpretability Visualizations"
authors = ["Alan Cooney <[email protected]>"]
license = "MIT"
Expand Down
3 changes: 2 additions & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "circuitsvis",
"description": "Mechanistic Interpretability Visualizations",
"version": "1.32.2",
"version": "1.33.0",
"main": "dist/commonjs/index.js",
"module": "dist/module/index.js",
"unpkg": "dist/cdn/iife.js",
Expand Down Expand Up @@ -65,6 +65,7 @@
"@types/tinycolor2": "^1.4.3",
"@typescript-eslint/eslint-plugin": "5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"chromatic": "^6.12.0",
"esbuild": "^0.16.1",
"esbuild-plugin-external-global": "^1.0.1",
"eslint": "8.29.0",
Expand Down
12 changes: 10 additions & 2 deletions react/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@
"@devtools-ds/themes" "^1.2.0"
clsx "1.1.0"

"@discoveryjs/json-ext@^0.5.3":
"@discoveryjs/json-ext@^0.5.3", "@discoveryjs/json-ext@^0.5.7":
version "0.5.7"
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==
Expand Down Expand Up @@ -3255,7 +3255,7 @@
resolved "https://registry.yarnpkg.com/@types/webgl-ext/-/webgl-ext-0.0.30.tgz#0ce498c16a41a23d15289e0b844d945b25f0fb9d"
integrity sha512-LKVgNmBxN0BbljJrVUwkxwRYqzsAEPcZOe6S2T6ZaBDIrFp0qu4FNlpc5sM1tGbXUYFgdVQIoeLk1Y1UoblyEg==

"@types/webpack-env@^1.16.0":
"@types/webpack-env@^1.16.0", "@types/webpack-env@^1.17.0":
version "1.18.0"
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.18.0.tgz#ed6ecaa8e5ed5dfe8b2b3d00181702c9925f13fb"
integrity sha512-56/MAlX5WMsPVbOg7tAxnYvNYMMWr/QJiIp6BxVSW3JJXUVzzOn64qW8TzQyMSqSUFM2+PVI4aUHcHOzIz/1tg==
Expand Down Expand Up @@ -4829,6 +4829,14 @@ chownr@^2.0.0:
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==

chromatic@^6.12.0:
version "6.12.0"
resolved "https://registry.yarnpkg.com/chromatic/-/chromatic-6.12.0.tgz#017aa9919e621c7e900ecd926d5362733bbb2f8c"
integrity sha512-Xm+GeBzaRFeTeqZb07Tx9FjkP63PTbVmX1FA8HPJq1dpthgUKATX7g53cw6ZET6+gCogGKuvsfIcB+naAqTQDQ==
dependencies:
"@discoveryjs/json-ext" "^0.5.7"
"@types/webpack-env" "^1.17.0"

chrome-trace-event@^1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac"
Expand Down

0 comments on commit 240e494

Please sign in to comment.