update
This commit is contained in:
1 parent
180271454d
commit
0c36e4b6f4
6 files changed
+37
-31
No files matched your search
+10
-13
@@ -11,11 +11,10 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v4
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
- run: yarn build
|
- run: yarn build-keycloak-theme
|
||||||
- run: npx keycloakify
|
|
||||||
|
|
||||||
check_if_version_upgraded:
|
check_if_version_upgraded:
|
||||||
name: Check if version upgrade
|
name: Check if version upgrade
|
||||||
@@ -39,14 +38,11 @@ jobs:
|
|||||||
# We create a release only if the version have been upgraded and we are on a default branch
|
# We create a release only if the version have been upgraded and we are on a default branch
|
||||||
if: needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' && github.event_name == 'push'
|
if: needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' && github.event_name == 'push'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v4
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
- run: yarn build
|
- run: yarn build-keycloak-theme
|
||||||
- run: npx keycloakify
|
- uses: softprops/action-gh-release@v2
|
||||||
- run: mv dist_keycloak/target/retrocompat-*.jar retrocompat-keycloak-theme.jar
|
|
||||||
- run: mv dist_keycloak/target/*.jar keycloak-theme.jar
|
|
||||||
- uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
with:
|
||||||
name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
||||||
tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
||||||
@@ -54,7 +50,8 @@ jobs:
|
|||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
draft: false
|
draft: false
|
||||||
files: |
|
files: |
|
||||||
retrocompat-keycloak-theme.jar
|
dist_keycloak/keycloak-theme-for-kc-21-and-below.jar
|
||||||
keycloak-theme.jar
|
dist_keycloak/keycloak-theme-for-kc-23.jar
|
||||||
|
dist_keycloak/keycloak-theme-for-kc-24-and-above.jar
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -40,3 +40,24 @@ of some pages use the command:
|
|||||||
```bash
|
```bash
|
||||||
npx keycloakify eject-page
|
npx keycloakify eject-page
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# GitHub Actions
|
||||||
|
|
||||||
|
The starter comes with a GitHub Actions workflow that builds the theme and publishes
|
||||||
|
the jars [as GitHub releases artifacts](https://github.com/keycloakify/keycloakify-starter/releases/tag/v7.1.0).
|
||||||
|
|
||||||
|
# Removing the account theme
|
||||||
|
|
||||||
|
If you don't need to customize [the account theme pages](https://storybook.keycloakify.dev/?path=/story/account-account--default).
|
||||||
|
You can remove the `src/account` directory and make the necessary changes in `src/main.tsx` and `src/vite-env.d.ts`.
|
||||||
|
This will significantly reduce the the size of the jar and the build time.
|
||||||
|
|
||||||
|
# Email theme
|
||||||
|
|
||||||
|
Keycloakify lets you bundle an email theme however customization can't be made with React yet.
|
||||||
|
It's just a regular Keycloak theme.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx keycloakify initialize-email-theme
|
||||||
|
```
|
||||||
|
|
||||||
+2
-2
@@ -10,7 +10,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"build-keycloak-theme": "yarn build && keycloakify",
|
"build-keycloak-theme": "yarn build && keycloakify build",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
"build-storybook": "storybook build",
|
"build-storybook": "storybook build",
|
||||||
"format": "npx prettier . --write"
|
"format": "npx prettier . --write"
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"keycloakify": "10.0.0-rc.33",
|
"keycloakify": "10.0.0-rc.34",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user