Skip to content

Commit 2aff84d

Browse files
feat: adding components folder to storybook (#3467)
* chore: backup before EdgeSQL migration fix - broken state * feat: storybook folder components * chore: remove wrong plan * chore: storybook -- azion sync * chore: azion cli config update * chore: storybook azion config * fix: active default rule * fix: azion deploy configuration * chore: adjust debug response rules description * chore: update azion cli * chore: adding azion defineConfig and remote prefix rotation * feat: adding deploy-storybook.yml * fix: remove pnpm * chore: using working-directory * chore: syntax and storybook yml adjust * fix: path of trigger storybook pipeline * chore: update storybook readme.md * chore: unify package.json of storybook dependencies and devDependencies * chore: adding license to storybook packagejson * fix: storybook cicd install dependencies * chore: trigger storybook deploy * fix: unify packagejson * fix: branch main to publish storybook modification * chore: storybook depoloy during dev merge
1 parent 372b7fd commit 2aff84d

19 files changed

Lines changed: 1077 additions & 2960 deletions

.github/workflows/deploy-production.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,47 @@
11
name: Deploy Console Kit (PRODUCTION)
2+
23
on:
34
push:
45
branches:
56
- main
7+
68
env:
79
HUSKY: 0
810
CLI_VERSION: 4.15.0
11+
912
jobs:
1013
deploy:
1114
runs-on: ubuntu-latest
1215
container:
1316
image: node:22-alpine
17+
1418
steps:
1519
- name: Checkout code
1620
uses: actions/checkout@v4
21+
1722
- name: Install SO deps
1823
run: apk add curl git bash jq
24+
1925
- name: Install dependencies
2026
run: yarn install
27+
2128
- name: Download Azion CLI
2229
run: |
2330
wget https://github.com/aziontech/azion/releases/download/${CLI_VERSION}/azion_${CLI_VERSION}_linux_amd64.apk
2431
apk add --allow-untrusted azion_${CLI_VERSION}_linux_amd64.apk
32+
2533
- name: Configure Azion CLI
2634
run: azion -t ${{ secrets.PLATFORM_KIT_TOKEN }}
35+
2736
- name: Build & Deploy
2837
run: azion deploy --auto --local --debug --config-dir azion/production
2938
env:
39+
NODE_ENV: production
40+
VITE_ENVIRONMENT: production
3041
VITE_STRIPE_TOKEN_PROD: ${{ secrets.PROD_STRIPE_TOKEN }}
3142
VITE_RECAPTCHA_SITE_KEY: ${{ secrets.PROD_RECAPTCHA_SITE_KEY }}
3243
VITE_SEGMENT_TOKEN: ${{ secrets.PROD_SEGMENT_TOKEN }}
3344
CROSS_EDGE_SECRET: ${{ secrets.PROD_CROSS_EDGE_SECRET}}
34-
NODE_ENV: production
35-
VITE_ENVIRONMENT: production
3645
VITE_PROD_SENTRY: ${{ secrets.PROD_SENTRY }}
3746
VITE_SSO_GITHUB: ${{ secrets.PROD_SSO_GITHUB }}
3847
VITE_SSO_GOOGLE: ${{ secrets.PROD_SSO_GOOGLE }}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy Storybook
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
paths:
8+
- 'storybook/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 'lts/*'
25+
cache: 'yarn'
26+
27+
- name: Install Azion CLI
28+
run: |
29+
curl -o azionlinux https://downloads.azion.com/linux/x86_64/azion
30+
sudo mv azionlinux /usr/bin/azion
31+
sudo chmod u+x /usr/bin/azion
32+
33+
- name: CLI version
34+
run: azion --version
35+
36+
- name: Configure token
37+
run: |
38+
azion -t ${{ secrets.AZION_PERSONAL_TOKEN }}
39+
azion whoami
40+
41+
- name: Install storybook dependencies
42+
run: yarn install
43+
44+
- name: Building Storybook
45+
run: |
46+
yarn storybook:build
47+
48+
- name: Azion Deploy
49+
run: |
50+
yarn storybook:deploy

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
"lint:architecture": "eslint src/ --ext .vue,.js,.ts --ignore-path .gitignore --no-fix",
3535
"lint:architecture:changed": "node scripts/lint-architecture-changed.cjs",
3636
"architecture:report": "node scripts/architecture-report/index.cjs",
37-
"storybook:dev": "cd storybook && yarn dev",
38-
"storybook:build": "cd storybook && yarn build"
37+
"storybook:build": "cd storybook && storybook build -o dist -c .storybook && cd ..",
38+
"storybook:dev": "cd storybook && storybook dev -p 6006 -c .storybook && cd ..",
39+
"storybook:preview": "cd storybook && npx http-server dist -p 6007 && cd ..",
40+
"storybook:deploy": "cd storybook && azion deploy --local --debug && cd .."
3941
},
4042
"dependencies": {
4143
"@analytics/segment": "^2.1.0",
@@ -100,7 +102,7 @@
100102
"@vue/eslint-config-prettier": "^8.0.0",
101103
"@vue/test-utils": "^2.4.1",
102104
"@whitespace/storybook-addon-html": "^6.0.0",
103-
"autoprefixer": "^10.4.14",
105+
"autoprefixer": "^10.4.27",
104106
"react-syntax-highlighter": "^15.6.1",
105107
"azion": "^1.20.10",
106108
"cypress": "13.14.0",
@@ -114,7 +116,7 @@
114116
"eslint-plugin-xss": "^0.1.12",
115117
"husky": "^8.0.0",
116118
"jsdom": "^22.1.0",
117-
"postcss": "^8.4.31",
119+
"postcss": "^8.5.8",
118120
"prettier": "^3.0.0",
119121
"sass": "1.77.6",
120122
"start-server-and-test": "^2.0.0",

storybook/IMPLEMENTATION_SUMMARY.md

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

0 commit comments

Comments
 (0)