Skip to content

Commit

Permalink
Adding Chromatic action
Browse files Browse the repository at this point in the history
  • Loading branch information
clintandrewhall committed Sep 12, 2024
1 parent 3c93fc4 commit 57f876d
Show file tree
Hide file tree
Showing 206 changed files with 83,118 additions and 3,773 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Chromatic'

on: push

jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
# FIXME: Because the setup-node action is dumb, we have to manually
# install the dependencies ourselves. See: https://github.com/actions/setup-node/issues/182
- name: Install dependencies
run: yarn install
- name: Run Chromatic
run: yarn build-storybook
6 changes: 4 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules
compressionLevel: mixed

enableGlobalCache: false

yarnPath: .yarn/releases/yarn-3.6.4.cjs
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build-storybook": "storybook build",
"generate:github": "ts-node ./scripts/github",
"generate:medium": "ts-node ./scripts/medium",
"chromatic": "npx chromatic --project-token=chpt_0a69331ccacaeaf"
"chromatic": "chromatic"
},
"dependencies": {
"@linaria/atomic": "^6.0.0",
Expand Down Expand Up @@ -83,5 +83,5 @@
"vite-imagetools": "^7.0.4",
"vite-plugin-markdown": "^2.2.0"
},
"packageManager": "yarn@3.6.4"
"packageManager": "yarn@4.4.1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';

import { LOC } from '@components/github/loc';
import { LOC } from '@components/github';

const meta: Meta<typeof LOC> = {
title: 'Components/Github/Lines of Code',
Expand Down
1 change: 1 addition & 0 deletions src/components/github/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { GithubCorner } from './corner';
export { LOC } from './loc';
export { GithubStats } from './stats';
2 changes: 1 addition & 1 deletion src/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'ress';
import 'unfonts.css';

// import 'unfonts.css';
import { color } from '@theme/color';
import { font } from '@theme/font';
import { grid } from '@theme/grid';
Expand Down
1 change: 1 addition & 0 deletions storybook-static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
clintandrewhall.com
7 changes: 7 additions & 0 deletions storybook-static/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# About this repository

This is a static build of [clintandrewhall.com](https://github.com/clintandrewhall/clintandrewhall.com). It is generated automatically by a Github Action and committed to this repo by [`gh-pages`](https://github.com/tschaub/gh-pages).

For the curious, I used to CD my website with Heroku. Since Heroku had their breach and has [disabled GH OAuth tokens](https://status.heroku.com/incidents/2413), I decided to pull the trigger on an auto-deploy-to-gh-pages approach.

It was [pretty easy](https://github.com/clintandrewhall/clintandrewhall.com/commit/22176bf5f4e693cc942cad21bdafba5d7807722b), in [the end](https://github.com/clintandrewhall/clintandrewhall.com/commits/main).
1 change: 1 addition & 0 deletions storybook-static/assets/Color-KGDBMAHA-322cb831.js

Large diffs are not rendered by default.

573 changes: 573 additions & 0 deletions storybook-static/assets/DocsRenderer-PKQXORMH-d843e146.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions storybook-static/assets/_unfonts-320edfae.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions storybook-static/assets/about.stories-eb8b7bea.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added storybook-static/assets/accenture-b310694f.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added storybook-static/assets/bo-60ec4679.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions storybook-static/assets/career.stories-917ff0ee.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added storybook-static/assets/cerner-ca613330.webp
Binary file not shown.
1 change: 1 addition & 0 deletions storybook-static/assets/client-e941fabf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{r}from"./index-5f347087.js";var o={},t=r;o.createRoot=t.createRoot,o.hydrateRoot=t.hydrateRoot;export{o as c};
1 change: 1 addition & 0 deletions storybook-static/assets/corner.stories-4038c5de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions storybook-static/assets/css-7708fb60.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added storybook-static/assets/david-45b17e5c.webp
Binary file not shown.
Binary file added storybook-static/assets/elastic-7c2cd453.webp
Binary file not shown.
1 change: 1 addition & 0 deletions storybook-static/assets/entry-preview-b0e5fce0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 54 additions & 0 deletions storybook-static/assets/entry-preview-docs-27249d0f.js

Large diffs are not rendered by default.

Binary file added storybook-static/assets/erik-0903b8e6.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added storybook-static/assets/facebook-6e866917.webp
Binary file not shown.
1 change: 1 addition & 0 deletions storybook-static/assets/font.stories-b075a0a6.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 112 additions & 0 deletions storybook-static/assets/font.stories-d780e3c6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import{j as s}from"./jsx-runtime-d079401a.js";import"./index-f1f2c4b1.js";const N={title:"Theme/Font"},e={render:()=>s.jsxs("div",{className:"atm_bx_3wtidt",children:[s.jsx("h1",{className:"atm_c8_jmbdy6",children:"Header 1"}),s.jsx("h2",{className:"atm_c8_115vrgw",children:"Header 2"}),s.jsx("h3",{className:"atm_c8_1ic6ef2",children:"Header 3"}),s.jsx("h4",{className:"atm_c8_1088tx0",children:"Header 4"}),s.jsx("h5",{className:"atm_c8_wwia0z",children:"Header 5"}),s.jsx("p",{className:"atm_c8_jmbdy6",children:"Step 5"}),s.jsx("p",{className:"atm_c8_115vrgw",children:"Step 4"}),s.jsx("p",{className:"atm_c8_1ic6ef2",children:"Step 3"}),s.jsx("p",{className:"atm_c8_1088tx0",children:"Step 2"}),s.jsx("p",{className:"atm_c8_wwia0z",children:"Step 1"}),s.jsx("p",{className:"atm_c8_xoeuol",children:"Step 0"}),s.jsx("p",{className:"atm_c8_ihbmcz",children:"Step -1"})]})},a={render:()=>s.jsxs("div",{children:[s.jsx("p",{className:"atm_c8_xoeuol atm_bx_18cx291",children:"'Libre Baskerville', serif"}),s.jsx("p",{className:"atm_c8_xoeuol atm_bx_3wtidt",children:"'Montserrat', sans-serif"})]})},n={render:()=>s.jsxs("div",{className:"atm_c8_wwia0z atm_bx_3wtidt",children:[s.jsx("p",{className:"atm_cs_d016ey",children:"Extra bold"}),s.jsx("p",{className:"atm_cs_m3gbs4",children:"Bold"}),s.jsx("p",{className:"atm_cs_zddnl",children:"Semi-bold"}),s.jsx("p",{className:"atm_cs_p0owkv",children:"Normal"}),s.jsx("p",{className:"atm_cs_1nt554y",children:"Light"})]})};var c,t,r;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{
render: () => <div className={csa\`
\${css.font.sansSerif.regular}
\`}>
<h1 className={csa\`
\${css.font.size.step5}
\`}>
Header 1
</h1>
<h2 className={csa\`
\${css.font.size.step4}
\`}>
Header 2
</h2>
<h3 className={csa\`
\${css.font.size.step3}
\`}>
Header 3
</h3>
<h4 className={csa\`
\${css.font.size.step2}
\`}>
Header 4
</h4>
<h5 className={csa\`
\${css.font.size.step1}
\`}>
Header 5
</h5>
<p className={csa\`
\${css.font.size.step5}
\`}>
Step 5
</p>
<p className={csa\`
\${css.font.size.step4}
\`}>
Step 4
</p>
<p className={csa\`
\${css.font.size.step3}
\`}>
Step 3
</p>
<p className={csa\`
\${css.font.size.step2}
\`}>
Step 2
</p>
<p className={csa\`
\${css.font.size.step1}
\`}>
Step 1
</p>
<p className={csa\`
\${css.font.size.step0}
\`}>
Step 0
</p>
<p className={csa\`
\${css.font.size.stepN1}
\`}>
Step -1
</p>
</div>
}`,...(r=(t=e.parameters)==null?void 0:t.docs)==null?void 0:r.source}}};var i,l,m;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`{
render: () => <div>
<p className={csa\`
\${css.font.size.step0}
\${css.font.serif.regular}
\`}>
'Libre Baskerville', serif
</p>
<p className={csa\`
\${css.font.size.step0}
\${css.font.sansSerif.regular}
\`}>
'Montserrat', sans-serif
</p>
</div>
}`,...(m=(l=a.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};var o,p,d;n.parameters={...n.parameters,docs:{...(o=n.parameters)==null?void 0:o.docs,source:{originalSource:`{
render: () => <div className={csa\`
\${css.font.size.step1}
\${css.font.sansSerif.regular}
\`}>
<p className={csa\`
font-weight: var(\${vars.font.weight.extraBold});
\`}>
Extra bold
</p>
<p className={csa\`
font-weight: var(\${vars.font.weight.bold});
\`}>
Bold
</p>
<p className={csa\`
font-weight: var(\${vars.font.weight.semiBold});
\`}>
Semi-bold
</p>
<p className={csa\`
font-weight: var(\${vars.font.weight.normal});
\`}>
Normal
</p>
<p className={csa\`
font-weight: var(\${vars.font.weight.light});
\`}>
Light
</p>
</div>
}`,...(d=(p=n.parameters)==null?void 0:p.docs)==null?void 0:d.source}}};const f=["FontSize","FontFamliy","FontWeight"];export{a as FontFamliy,e as FontSize,n as FontWeight,f as __namedExportsOrder,N as default};
1 change: 1 addition & 0 deletions storybook-static/assets/footer.stories-011c2a7b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added storybook-static/assets/freddy-64821517.webp
Binary file not shown.
1 change: 1 addition & 0 deletions storybook-static/assets/grid.stories-c27b89fd.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57f876d

Please sign in to comment.