Skip to content

Commit a394cbe

Browse files
committed
ci: setting up storybook on vercel
1 parent 6aa6e5a commit a394cbe

File tree

6 files changed

+14
-112
lines changed

6 files changed

+14
-112
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: pnpm test:ci
5656

5757
- name: Build storybook
58-
run: pnpm storybook:build
58+
run: pnpm build-storybook
5959

6060
- name: Build package
6161
run: pnpm build

.github/workflows/publish.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A React component for rendering a 'npm install <package name>' code block. Supports multiple package managers and variations of install commands. Totally customizable. Drop it into an MDX file, a Shadcn component, a Tailwind codebase, use our built in styles or even go unstyled. You choose.
44

5-
Visit the [Storybook](https://timmikeladze.github.io/react-install-command/) for examples and documentation.
5+
Visit the [Storybook](https://react-install-command.vercel.app/) for examples and documentation.
66

77
![React Command Block Demo](./docs/readme.png)
88

@@ -23,6 +23,8 @@ Visit the [Storybook](https://timmikeladze.github.io/react-install-command/) for
2323
npm install react-install-command
2424
```
2525

26+
> 👋 Hello there! Follow me [@linesofcode](https://twitter.com/linesofcode) or visit [linesofcode.dev](https://linesofcode.dev) for more cool projects like this one.
27+
2628
## Usage
2729

2830
### Basic Usage

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"test:ci": "vitest run --coverage",
5050
"commit": "cz",
5151
"storybook": "storybook dev -p 6006",
52-
"storybook:build": "storybook build",
52+
"build-storybook": "storybook build",
5353
"release": "pnpm build && pnpm release-it",
5454
"link:self": "pnpm link --global",
5555
"prepare": "lefthook install"
@@ -127,7 +127,5 @@
127127
"micromatch@<4.0.8": ">=4.0.8"
128128
}
129129
},
130-
"dependencies": {
131-
"html2canvas": "^1.4.1"
132-
}
130+
"dependencies": {}
133131
}

pnpm-lock.yaml

Lines changed: 0 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vercel.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"buildCommand": "npm run build-storybook",
4+
"devCommand": "npm run storybook",
5+
"installCommand": "npm install",
6+
"framework": null,
7+
"outputDirectory": "./storybook-static"
8+
}

0 commit comments

Comments
 (0)