Skip to content

Commit 31f9da4

Browse files
committed
1 parent ed05827 commit 31f9da4

File tree

3 files changed

+25
-36
lines changed

3 files changed

+25
-36
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,22 @@ on:
99

1010
jobs:
1111

12-
build:
12+
test:
1313
runs-on: ubuntu-latest
14-
if: github.event.head_commit.author.name != 'actions'
1514
steps:
1615
- uses: actions/checkout@v2
17-
- uses: actions/[email protected]
18-
with:
19-
node-version: '16'
16+
- uses: actions/setup-node@v2
2017
- uses: bahmutov/npm-install@v1
2118
- run: yarn build
2219
- run: npx keycloakify
2320
env:
2421
XDG_CACHE_HOME: "/home/runner/.cache/yarn"
25-
- uses: actions/upload-artifact@v2
26-
with:
27-
name: standalone_keycloak_theme
28-
path: build_keycloak/target/*keycloak-theme*.jar
29-
- uses: actions/upload-artifact@v2
30-
with:
31-
name: build
32-
path: build
3322

3423
check_if_version_upgraded:
3524
name: Check if version upgrade
25+
if: github.event_name == 'push'
3626
runs-on: ubuntu-latest
37-
needs: build
27+
needs: test
3828
outputs:
3929
from_version: ${{ steps.step1.outputs.from_version }}
4030
to_version: ${{ steps.step1.outputs.to_version }}
@@ -44,34 +34,33 @@ jobs:
4434
id: step1
4535
with:
4636
action_name: is_package_json_version_upgraded
37+
branch: ${{ github.head_ref || github.ref }}
4738

4839
create_github_release:
4940
runs-on: ubuntu-latest
50-
needs:
51-
- check_if_version_upgraded
41+
needs: check_if_version_upgraded
5242
# We create a release only if the version have been upgraded and we are on a default branch
53-
# PR on the default branch can release beta but not real release
54-
if: |
55-
needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' &&
56-
(
57-
github.event_name == 'push' ||
58-
needs.check_if_version_upgraded.outputs.is_release_beta == 'true'
59-
)
43+
if: needs.check_if_version_upgraded.outputs.is_upgraded_version == 'true' && github.event_name == 'push'
6044
steps:
61-
- run: mkdir jars
62-
- uses: actions/download-artifact@v2
63-
with:
64-
name: standalone_keycloak_theme
65-
- run: mv *keycloak-theme*.jar jars/keycloak-theme-dsfr.jar
45+
- uses: actions/checkout@v2
46+
- uses: actions/setup-node@v2
47+
- uses: bahmutov/npm-install@v1
48+
- run: yarn build
49+
- run: npx keycloakify
50+
env:
51+
XDG_CACHE_HOME: "/home/runner/.cache/yarn"
52+
- run: mv build_keycloak/target/retrocompat-*.jar retrocompat-keycloak-theme.jar
53+
- run: mv build_keycloak/target/*.jar keycloak-theme.jar
6654
- uses: softprops/action-gh-release@v1
6755
with:
6856
name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }}
6957
tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }}
7058
target_commitish: ${{ github.head_ref || github.ref }}
7159
generate_release_notes: true
72-
files: |
73-
jars/keycloak-theme-dsfr.jar
7460
draft: false
75-
prerelease: ${{ needs.check_if_version_upgraded.outputs.is_release_beta == 'true' }}
61+
files: |
62+
retrocompat-keycloak-theme.jar
63+
keycloak-theme.jar
7664
env:
7765
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@storybook/addon-docs": "^6.5.15",
3838
"@tanstack/react-virtual": "3.0.0-beta.39",
3939
"i18nifty": "^1.5.12",
40-
"keycloakify": "^8.0.0",
40+
"keycloakify": "^9.1.10",
4141
"react": "^18.2.0",
4242
"react-dom": "^18.2.0",
4343
"react-scripts": "5.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10111,10 +10111,10 @@ jwt-decode@^3.1.2:
1011110111
resolved "https://registry.yarnpkg.com/jwt-decode/-/jwt-decode-3.1.2.tgz#3fb319f3675a2df0c2895c8f5e9fa4b67b04ed59"
1011210112
integrity sha512-UfpWE/VZn0iP50d8cz9NrZLM9lSWhcJ+0Gt/nm4by88UL+J1SiKN8/5dkjMmbEzwL2CAe+67GsegCbIKtbp75A==
1011310113

10114-
keycloakify@^8.0.0:
10115-
version "8.0.0"
10116-
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-8.0.0.tgz#b0f6a0fda34e8601f735df25b24909433a6b5fd3"
10117-
integrity sha512-/A6Uh9SuVdTP7cix8yS15Vfr03BwVFP11s3YPmQ9dSJN1GrIqzRs6mjTEnogM/ZfhySJwyXSeqTtpCGlXmtxJQ==
10114+
keycloakify@^9.1.10:
10115+
version "9.1.10"
10116+
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-9.1.10.tgz#048dd0c40fa6bbe25aec23f4deb803db24a7542e"
10117+
integrity sha512-BIXuiHLLtz/B04uHwE6jrzIgEPcfrFzGZDRB8HMfCFkgz30RJrf+7arFnYBwvFNs7hcwZOJzJyVIVQb0ixPxrw==
1011810118
dependencies:
1011910119
"@babel/generator" "^7.22.9"
1012010120
"@babel/parser" "^7.22.7"

0 commit comments

Comments
 (0)