Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
e7d116b
Create npm-publish.yml
fattslug Mar 31, 2025
b50f4d6
feat: update ci
fattslug Mar 31, 2025
0bb3436
Merge branch 'master' into update-ci
fattslug Mar 31, 2025
1e7f7b5
feat: update ci
fattslug Mar 31, 2025
ed4c150
Merge branch 'update-ci' of https://github.com/fattslug/doc-blocks in…
fattslug Mar 31, 2025
323a500
Update npm-publish.yml
fattslug Mar 31, 2025
4fa03ab
Update package.json
fattslug Mar 31, 2025
9253848
Update npm-publish.yml
fattslug Mar 31, 2025
144d0b2
feat: update pkg names, gh_token
fattslug Mar 31, 2025
50694bc
feat: more updates
fattslug Mar 31, 2025
bbbcace
fix: lerna
fattslug Mar 31, 2025
d55f5a2
feat: update react to 18
fattslug Mar 31, 2025
94c4784
Update package.json
fattslug Apr 1, 2025
285048d
Update npm-publish.yml
fattslug Apr 1, 2025
dd72d26
Update npm-publish.yml
fattslug Apr 1, 2025
b3ad76e
Update npm-publish.yml
fattslug Apr 1, 2025
131c2e5
force commit
fattslug Apr 1, 2025
3e2569b
bump auto
fattslug Apr 1, 2025
d41ad1b
bump auto plugins
fattslug Apr 1, 2025
a08bfb0
Update npm-publish.yml
fattslug Apr 1, 2025
3274df2
fix: debug
fattslug Apr 1, 2025
436496c
Update package.json
fattslug Apr 1, 2025
193911b
Update yarn.lock
fattslug Apr 1, 2025
01bb24d
feat: bump lerna
fattslug Apr 1, 2025
61b543c
Update lerna.json
fattslug Apr 1, 2025
84ca94c
fix: test
fattslug Apr 1, 2025
5af1bae
Update npm-publish.yml
fattslug Apr 1, 2025
ad6fa0f
Update npm-publish.yml
fattslug Apr 1, 2025
03aa24a
fix: migrate to storybook 8 and react 18
fattslug Apr 3, 2025
9d52371
fix: package names
Apr 8, 2025
a183dc1
fix: changelog replacement oops
Apr 28, 2025
e02beaf
fix: doc-blocks package
Apr 28, 2025
dae9b00
fix: revert doc-blocks package name
Apr 28, 2025
357b80b
fix: debug release
Apr 28, 2025
9c00a23
fix: test secrets
Apr 28, 2025
06c21ec
Merge pull request #32 from fattslug/update-ci
fattslug Apr 28, 2025
69cc3bc
feat: update pipeline, add tests
Apr 28, 2025
6c98d49
feat: update storybook stories to Storybook v8 TSX CSF
Apr 29, 2025
a40161f
fix: tests
Apr 29, 2025
cf65051
fix: logs
Apr 29, 2025
dbb4cd7
feat: add storybook deployment to pipeline
Apr 29, 2025
11554c7
fix: workflow name
Apr 29, 2025
12f367b
fix: update checkout
Apr 29, 2025
5fe426a
feat: create yarnrc
Apr 29, 2025
692c71a
fix: yarn.lock
Apr 29, 2025
ea23777
fix: build
Apr 29, 2025
8cc2394
fix: install
Apr 29, 2025
4c879e3
fix: permissions
Apr 29, 2025
6337db9
feat: migrate to vite
Apr 30, 2025
4de3a2b
fix: install
Apr 30, 2025
d8f025c
fix: tests
Apr 30, 2025
ad7652d
fix: update yarn lock
Apr 30, 2025
fc01e4b
fix: frozen lockfile
Apr 30, 2025
014016b
fix: CSS issues
May 1, 2025
b00b7ae
fix: storybook deploy on master only
May 1, 2025
f8bb9ea
feat: inject css via js
May 1, 2025
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
111 changes: 0 additions & 111 deletions .circleci/config.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .circleci/get-storybook-url.js

This file was deleted.

27 changes: 0 additions & 27 deletions .circleci/post-build-url.js

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
pull_request:
types: [opened, synchronize, reopened]
release:
types: [created]

jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PR: ${{ steps.PR.outputs.number }}
run: yarn release
40 changes: 40 additions & 0 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Storybook Deployment

on:
push:
branches:
- "master"

permissions:
contents: read
pages: write
id-token: write

jobs:
storybook-publish:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Deploy Storybook
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
path: storybook-static
install_command: yarn install
build_command: yarn build:storybook
checkout: false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ core.*
.env
.eslintcache
tsconfig.tsbuildinfo

*storybook.log
storybook-static/
16 changes: 0 additions & 16 deletions .storybook/main.js

This file was deleted.

26 changes: 26 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { join, dirname } from "path";

/**
* This function is used to resolve the absolute path of a package.
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
*/
function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
const config: StorybookConfig = {
stories: ["../components/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
core: {
builder: "@storybook/builder-vite",
},
addons: [
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@chromatic-com/storybook"),
getAbsolutePath("@storybook/addon-interactions"),
],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
options: {},
},
};
export default config;
12 changes: 0 additions & 12 deletions .storybook/preview-head.html

This file was deleted.

36 changes: 0 additions & 36 deletions .storybook/preview.js

This file was deleted.

15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from "@storybook/react";
import "./styles.css";

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
5 changes: 5 additions & 0 deletions .storybook/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* {
font-family: Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
}
Loading