Merge pull request #2 from lordvlad/lordvlad/issue125
feat(devx): introduce storybook
This commit is contained in:
commit
8c61339a7c
50 files changed
+9030
-190
No files matched your search
@@ -34,6 +34,20 @@ jobs:
|
|||||||
name: build
|
name: build
|
||||||
path: 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:
|
check_if_version_upgraded:
|
||||||
name: Check if version upgrade
|
name: Check if version upgrade
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -53,7 +67,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- check_if_version_upgraded
|
- check_if_version_upgraded
|
||||||
- build
|
- 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
|
# 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.
|
# defined but GitHub Action don't allow it.
|
||||||
if: |
|
if: |
|
||||||
@@ -80,7 +94,7 @@ jobs:
|
|||||||
- check_if_version_upgraded
|
- check_if_version_upgraded
|
||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
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
|
# 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.
|
# defined but GitHub Action don't allow it.
|
||||||
if: |
|
if: |
|
||||||
|
|||||||
+2
-1
@@ -43,4 +43,5 @@ jspm_packages
|
|||||||
/dist
|
/dist
|
||||||
|
|
||||||
/build_keycloak
|
/build_keycloak
|
||||||
/build
|
/build
|
||||||
|
/storybook-static
|
||||||
@@ -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
Reference in new issue
Block a user