Skip to content

Commit 7b6d16f

Browse files
committed
build: add Storybook continuous delivery workflow
1 parent a65694a commit 7b6d16f

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Storybook CD Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
delete:
7+
branches:
8+
9+
jobs:
10+
call-storybook-cd-workflow:
11+
uses: netcracker/qubership-apihub-ci/.github/workflows/storybook-cd.yaml@main

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"update-dev-deps": "npm ls --json | jq -r \".dependencies | keys[]\" | grep '@netcracker' | xargs --no-run-if-empty npm update",
1010
"build": "npx lerna run build",
11+
"build:showcase": "npm run --workspace=@netcracker/qubership-apihub-ui-shared build:showcase",
1112
"lint": "eslint . --ext .ts,.tsx,.json --ignore-path .gitignore --max-warnings 0 --report-unused-disable-directives",
1213
"format": "npm run lint --fix",
1314
"dev:agents": "npx lerna run dev:backend,dev:frontend --stream --scope=@netcracker/qubership-apihub-ui-agents",

packages/shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint": "eslint . --ext .ts,.tsx,.json --ignore-path ../../.gitignore --max-warnings 0 --report-unused-disable-directives",
1313
"format": "npm run lint --fix",
1414
"storybook": "storybook dev -p 6006",
15-
"build:showcase": "storybook build -o dist-showcase --disable-telemetry",
15+
"build:showcase": "storybook build -o ../../dist-showcase --disable-telemetry",
1616
"integration-test:develop": "npm run build:showcase && start-server-and-test integration-test:server http://localhost:6006 integration-test:run-local",
1717
"integration-test:ci": "npm run build:showcase && start-server-and-test integration-test:server http://localhost:6006 integration-test:run-ci",
1818
"integration-test:server": "ws -p 6006 -d dist-showcase --spa index.html --static.maxage 3600",

0 commit comments

Comments
 (0)