Skip to content

Commit a7c5af1

Browse files
committed
build: add storybook build script and update workflows
1 parent 587db9e commit a7c5af1

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
cache: "pnpm"
4343
- run: pnpm install
4444
- run: pnpm build
45+
- run: pnpm build:storybook
4546
- run: |
4647
git config --global user.name "googleworkspace-bot"
4748
git config --global user.email "googleworkspace-bot@google.com"
@@ -58,6 +59,6 @@ jobs:
5859
- uses: actions/configure-pages@v5
5960
- uses: actions/upload-pages-artifact@v3
6061
with:
61-
path: "storybook-static"
62+
path: "packages/drive-picker-element/storybook-static"
6263
- id: deployment
6364
uses: actions/deploy-pages@v4

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"private": true,
44
"scripts": {
55
"build": "turbo build",
6+
"build:storybook": "turbo storybook-build",
67
"changeset": "changeset",
78
"check": "turbo check",
8-
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile",
9+
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm format",
910
"changeset:publish": "changeset publish",
1011
"format": "prettier --write . && biome check --write .",
1112
"lint": "prettier --write . && biome check --write .",

packages/drive-picker-element/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
},
4242
"scripts": {
4343
"build": "cem analyze --config cem.config.js && tsup",
44+
"build:storybook": "storybook build",
4445
"check": "tsc --noEmit",
4546
"prepack": "pnpm build",
4647
"storybook": "storybook dev -p 6006",

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"check": {
1919
"dependsOn": ["build"],
2020
"outputs": []
21+
},
22+
"build:storybook": {
23+
"dependsOn": ["build"],
24+
"outputs": ["storybook-static/**"]
2125
}
2226
}
2327
}

0 commit comments

Comments
 (0)