Merge pull request #2 from lordvlad/lordvlad/issue125

feat(devx): introduce storybook
This commit is contained in:
Waldemar Reusch authored and GitHub committed 2023-03-17 14:03:54 +01:00 Unverified
commit 8c61339a7c
50 files changed
+8984 -144

No files matched your search

+16 -2
View File
@@ -34,6 +34,20 @@ jobs:
name: build
path: build
deploy_storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.3
with:
node-version: '16'
- uses: bahmutov/npm-install@v1
- run: yarn build-storybook -o ./build_storybook
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p gh-pages@3.1.0 gh-pages -d ./build_storybook --dest storybook --add -u "github-actions-bot <actions@github.com>"
check_if_version_upgraded:
name: Check if version upgrade
runs-on: ubuntu-latest
@@ -53,7 +67,7 @@ jobs:
needs:
- check_if_version_upgraded
- build
# We publish the the docker image only if it's a push on the default branch or if it's a PR from a
# We publish the docker image only if it's a push on the default branch or if it's a PR from a
# branch (meaning not a PR from a fork). It would be more straightforward to test if secrets.DOCKERHUB_TOKEN is
# defined but GitHub Action don't allow it.
if: |
@@ -80,7 +94,7 @@ jobs:
- check_if_version_upgraded
- build
runs-on: ubuntu-latest
# We publish the the docker image only if it's a push on the default branch or if it's a PR from a
# We publish the docker image only if it's a push on the default branch or if it's a PR from a
# branch (meaning not a PR from a fork). It would be more straightforward to test if secrets.DOCKERHUB_TOKEN is
# defined but GitHub Action don't allow it.
if: |
+1
View File
@@ -44,3 +44,4 @@ jspm_packages
/build_keycloak
/build
/storybook-static
+16
View File
@@ -0,0 +1,16 @@
module.exports = {
"stories": [
"../src/keycloak-theme/**/*.stories.tsx",
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
"@storybook/preset-create-react-app"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"
},
"staticDirs": ['../public']
}
Loaded 3 of 50 files, more files were not shown because too many files have changed in this diff. Show more