Skip to content

Commit 251cf3c

Browse files
authored
Merge pull request #98 from TimMikeladze/pr/97
ci: updates for deploying storybook to github pages
2 parents 6b5d731 + 34ddc04 commit 251cf3c

File tree

3 files changed

+12
-94
lines changed

3 files changed

+12
-94
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ jobs:
2525
- name: Install dependencies
2626
run: yarn install --frozen-lockfile
2727

28-
- name: Build and Deploy Storybook
29-
run: yarn deploy-storybook --ci
28+
- name: Build Storybook
29+
run: yarn build-storybook
30+
31+
- name: Deploy Storybook
32+
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
33+
with:
34+
path: storybook-static
3035
env:
3136
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
3237

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"commit": "cz",
2222
"storybook": "storybook dev -p 6006",
2323
"build-storybook": "storybook build",
24-
"deploy-storybook": "storybook-to-ghpages",
2524
"release": "yarn build && yarn release-it",
2625
"link:self": "yarn yalc publish && yarn link"
2726
},
@@ -94,7 +93,6 @@
9493
"@storybook/blocks": "7.6.3",
9594
"@storybook/react": "7.6.3",
9695
"@storybook/react-webpack5": "7.6.3",
97-
"@storybook/storybook-deployer": "2.8.16",
9896
"@storybook/testing-library": "0.2.2",
9997
"@testing-library/jest-dom": "^6.0.0",
10098
"@testing-library/react": "^14.0.0",

yarn.lock

Lines changed: 5 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,17 +3643,6 @@
36433643
memoizerific "^1.11.3"
36443644
qs "^6.10.0"
36453645

3646-
"@storybook/storybook-deployer@2.8.16":
3647-
version "2.8.16"
3648-
resolved "https://registry.yarnpkg.com/@storybook/storybook-deployer/-/storybook-deployer-2.8.16.tgz#890abe4fd81b6fbc028dffb6314016f208aba6c2"
3649-
integrity sha512-DRQrjyLKaRLXMYo7SNUznyGabtOLJ0b9yfBKNVMu6PsUHJifGPabXuNXmRPZ6qvyhHUSKLQgeLaX8L3Og6uFUg==
3650-
dependencies:
3651-
git-url-parse "^12.0.0"
3652-
glob "^7.1.3"
3653-
parse-repo "^1.0.4"
3654-
shelljs "^0.8.1"
3655-
yargs "^15.0.0"
3656-
36573646
"@storybook/telemetry@7.6.3":
36583647
version "7.6.3"
36593648
resolved "https://registry.yarnpkg.com/@storybook/telemetry/-/telemetry-7.6.3.tgz#c41dfed339e60b9e87fd6b4375c84f145793c9e5"
@@ -5507,7 +5496,7 @@ camelcase-keys@^6.2.2:
55075496
map-obj "^4.0.0"
55085497
quick-lru "^4.0.1"
55095498

5510-
camelcase@^5.0.0, camelcase@^5.3.1:
5499+
camelcase@^5.3.1:
55115500
version "5.3.1"
55125501
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320"
55135502
integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==
@@ -5695,15 +5684,6 @@ cli-width@^4.1.0:
56955684
resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5"
56965685
integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==
56975686

5698-
cliui@^6.0.0:
5699-
version "6.0.0"
5700-
resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
5701-
integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==
5702-
dependencies:
5703-
string-width "^4.2.0"
5704-
strip-ansi "^6.0.0"
5705-
wrap-ansi "^6.2.0"
5706-
57075687
cliui@^7.0.2:
57085688
version "7.0.4"
57095689
resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
@@ -6154,7 +6134,7 @@ decamelize-keys@^1.1.0:
61546134
decamelize "^1.1.0"
61556135
map-obj "^1.0.0"
61566136

6157-
decamelize@^1.1.0, decamelize@^1.2.0:
6137+
decamelize@^1.1.0:
61586138
version "1.2.0"
61596139
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
61606140
integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==
@@ -7838,7 +7818,7 @@ gensync@^1.0.0-beta.2:
78387818
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
78397819
integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==
78407820

7841-
get-caller-file@^2.0.1, get-caller-file@^2.0.5:
7821+
get-caller-file@^2.0.5:
78427822
version "2.0.5"
78437823
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
78447824
integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==
@@ -7940,14 +7920,6 @@ git-raw-commits@^2.0.11:
79407920
split2 "^3.0.0"
79417921
through2 "^4.0.0"
79427922

7943-
git-up@^6.0.0:
7944-
version "6.0.0"
7945-
resolved "https://registry.yarnpkg.com/git-up/-/git-up-6.0.0.tgz#dbd6e4eee270338be847a0601e6d0763c90b74db"
7946-
integrity sha512-6RUFSNd1c/D0xtGnyWN2sxza2bZtZ/EmI9448n6rCZruFwV/ezeEn2fJP7XnUQGwf0RAtd/mmUCbtH6JPYA2SA==
7947-
dependencies:
7948-
is-ssh "^1.4.0"
7949-
parse-url "^7.0.2"
7950-
79517923
git-up@^7.0.0:
79527924
version "7.0.0"
79537925
resolved "https://registry.yarnpkg.com/git-up/-/git-up-7.0.0.tgz#bace30786e36f56ea341b6f69adfd83286337467"
@@ -7963,13 +7935,6 @@ git-url-parse@13.1.1:
79637935
dependencies:
79647936
git-up "^7.0.0"
79657937

7966-
git-url-parse@^12.0.0:
7967-
version "12.0.0"
7968-
resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-12.0.0.tgz#4ba70bc1e99138321c57e3765aaf7428e5abb793"
7969-
integrity sha512-I6LMWsxV87vysX1WfsoglXsXg6GjQRKq7+Dgiseo+h0skmp5Hp2rzmcEIRQot9CPA+uzU7x1x7jZdqvTFGnB+Q==
7970-
dependencies:
7971-
git-up "^6.0.0"
7972-
79737938
github-slugger@^1.0.0:
79747939
version "1.5.0"
79757940
resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.5.0.tgz#17891bbc73232051474d68bd867a34625c955f7d"
@@ -10561,12 +10526,7 @@ parse-path@^7.0.0:
1056110526
dependencies:
1056210527
protocols "^2.0.0"
1056310528

10564-
parse-repo@^1.0.4:
10565-
version "1.0.4"
10566-
resolved "https://registry.yarnpkg.com/parse-repo/-/parse-repo-1.0.4.tgz#74b91d2cb8675d11b99976a0065f6ce17fa1bcc8"
10567-
integrity sha512-RdwYLh7cmxByP/BfeZX0QfIVfeNrH2fWgK1aLsGK+G6nCO4WTlCks4J7aW0O3Ap9BCPDF/e8rGTT50giQr10zg==
10568-
10569-
parse-url@>=8.1.0, parse-url@^7.0.2, parse-url@^8.1.0:
10529+
parse-url@>=8.1.0, parse-url@^8.1.0:
1057010530
version "8.1.0"
1057110531
resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-8.1.0.tgz#972e0827ed4b57fc85f0ea6b0d839f0d8a57a57d"
1057210532
integrity sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w==
@@ -11484,11 +11444,6 @@ require-from-string@^2.0.2:
1148411444
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
1148511445
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
1148611446

11487-
require-main-filename@^2.0.0:
11488-
version "2.0.0"
11489-
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
11490-
integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==
11491-
1149211447
requireindex@^1.1.0:
1149311448
version "1.2.0"
1149411449
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.2.0.tgz#3463cdb22ee151902635aa6c9535d4de9c2ef1ef"
@@ -11811,11 +11766,6 @@ serve-static@1.15.0:
1181111766
parseurl "~1.3.3"
1181211767
send "0.18.0"
1181311768

11814-
set-blocking@^2.0.0:
11815-
version "2.0.0"
11816-
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
11817-
integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==
11818-
1181911769
set-function-length@^1.1.1:
1182011770
version "1.1.1"
1182111771
resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed"
@@ -11864,7 +11814,7 @@ shell-quote@^1.8.1:
1186411814
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680"
1186511815
integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==
1186611816

11867-
shelljs@0.8.5, shelljs@^0.8.1:
11817+
shelljs@0.8.5:
1186811818
version "0.8.5"
1186911819
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c"
1187011820
integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==
@@ -13301,11 +13251,6 @@ which-collection@^1.0.1:
1330113251
is-weakmap "^2.0.1"
1330213252
is-weakset "^2.0.1"
1330313253

13304-
which-module@^2.0.0:
13305-
version "2.0.0"
13306-
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
13307-
integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==
13308-
1330913254
which-typed-array@^1.1.10, which-typed-array@^1.1.11, which-typed-array@^1.1.9:
1331013255
version "1.1.11"
1331113256
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.11.tgz#99d691f23c72aab6768680805a271b69761ed61a"
@@ -13496,11 +13441,6 @@ xtend@~4.0.1:
1349613441
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
1349713442
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
1349813443

13499-
y18n@^4.0.0:
13500-
version "4.0.3"
13501-
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf"
13502-
integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==
13503-
1350413444
y18n@^5.0.5:
1350513445
version "5.0.8"
1350613446
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
@@ -13540,36 +13480,11 @@ yargs-parser@21.1.1, yargs-parser@^21.1.1:
1354013480
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
1354113481
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
1354213482

13543-
yargs-parser@^18.1.2:
13544-
version "18.1.3"
13545-
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
13546-
integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==
13547-
dependencies:
13548-
camelcase "^5.0.0"
13549-
decamelize "^1.2.0"
13550-
1355113483
yargs-parser@^20.2.2, yargs-parser@^20.2.3:
1355213484
version "20.2.9"
1355313485
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee"
1355413486
integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==
1355513487

13556-
yargs@^15.0.0:
13557-
version "15.4.1"
13558-
resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8"
13559-
integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==
13560-
dependencies:
13561-
cliui "^6.0.0"
13562-
decamelize "^1.2.0"
13563-
find-up "^4.1.0"
13564-
get-caller-file "^2.0.1"
13565-
require-directory "^2.1.1"
13566-
require-main-filename "^2.0.0"
13567-
set-blocking "^2.0.0"
13568-
string-width "^4.2.0"
13569-
which-module "^2.0.0"
13570-
y18n "^4.0.0"
13571-
yargs-parser "^18.1.2"
13572-
1357313488
yargs@^16.1.1:
1357413489
version "16.2.0"
1357513490
resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"

0 commit comments

Comments
 (0)