Compare commits

...

4 Commits

Author SHA1 Message Date
645503119b Bump version 2024-09-30 11:47:15 +02:00
804ef8cec6 Fix allegated vulnerability 2024-09-30 11:46:56 +02:00
85954be93d Prevent publishing on storybook 2024-09-23 04:35:00 +02:00
9a03f37fe3 Make it possible to publish backward compat paches 2024-09-23 04:29:24 +02:00
3 changed files with 21 additions and 20 deletions

View File

@ -3,6 +3,7 @@ on:
push: push:
branches: branches:
- main - main
- v10
pull_request: pull_request:
branches: branches:
- main - main
@ -35,21 +36,21 @@ jobs:
- run: npm run build - run: npm run build
- run: npm run test - run: npm run test
storybook: #storybook:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
if: github.event_name == 'push' # if: github.event_name == 'push'
needs: test # needs: test
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
- uses: actions/setup-node@v4 # - uses: actions/setup-node@v4
with: # with:
node-version: '18' # node-version: '18'
- uses: bahmutov/npm-install@v1 # - uses: bahmutov/npm-install@v1
- run: npm run build-storybook # - run: npm run build-storybook
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git # - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env: # env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p gh-pages@3.1.0 gh-pages -d ./storybook-static -u "github-actions-bot <actions@github.com>" # - run: npx -y -p gh-pages@3.1.0 gh-pages -d ./storybook-static -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
@ -128,10 +129,7 @@ jobs:
echo "Can't publish on NPM, You must first create a secret called NPM_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets" echo "Can't publish on NPM, You must first create a secret called NPM_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets"
false false
fi fi
EXTRA_ARGS="" EXTRA_ARGS="--tag v10"
if [ "$IS_PRE_RELEASE" = "true" ]; then
EXTRA_ARGS="--tag next"
fi
npm publish $EXTRA_ARGS npm publish $EXTRA_ARGS
env: env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

View File

@ -1,6 +1,6 @@
{ {
"name": "keycloakify", "name": "keycloakify",
"version": "10.1.4", "version": "10.1.5",
"description": "Create Keycloak themes using React", "description": "Create Keycloak themes using React",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -166,6 +166,9 @@ function decodeHtmlEntities(htmlStr){
) || ( ) || (
["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) && ["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) &&
areSamePath(path, ["realm"]) areSamePath(path, ["realm"])
) || (
"smtpConfig" == key &&
are_same_path(path, ["realm"])
) || ( ) || (
xKeycloakify.pageId == "error.ftl" && xKeycloakify.pageId == "error.ftl" &&
areSamePath(path, ["realm"]) && areSamePath(path, ["realm"]) &&