FFFF Fixing out-of-date wireit caches by ahus1 · Pull Request #54806 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/actions/pnpm-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Setup PNPM
description: Sets up Node.js, enables Wireit and PNPM caching, and installs dependencies.

inputs:
node-version:
description: Node.js version
required: false
default: "24"

runs:
using: composite
steps:
# Wireit includes the Node.js version in its cache fingerprint, so using the same version as the Maven build lets both share cache entries.
- name: Get Node.js version
id: node-version
shell: bash
run: echo "version=$(grep '<node.version>' js/pom.xml | cut -d '>' -f 2 | cut -d '<' -f 1 | cut -c 2-)" >> $GITHUB_OUTPUT

- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ inputs.node-version }}
check-latest: true
node-version: ${{ steps.node-version.outputs.version }}

- name: Setup Corepack
uses: ./.github/actions/corepack-setup
Expand Down
10BC8
4 changes: 2 additions & 2 deletions .github/workflows/js-wireit-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:

- uses: ./.github/actions/pnpm-setup

- name: Build Keycloak Admin Client
run: pnpm --fail-if-no-match --filter @keycloak/keycloak-admin-client build
- name: Build all JS modules
run: pnpm build
working-directory: js
1 change: 1 addition & 0 deletions js/apps/account-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"public",
"src",
"tsconfig.json",
"../../tsconfig.json",
"vite.config.ts"
],
"output": [
Expand Down
1 change: 1 addition & 0 deletions js/apps/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"public",
"src",
"tsconfig.json",
"../../tsconfig.json",
"vite.config.ts"
],
"output": [
Expand Down
7 changes: 5 additions & 2 deletions js/libs/keycloak-admin-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
],
"files": [
"src",
"tsconfig.json"
"tsconfig.json",
"../../tsconfig.json"
],
"output": [
"lib"
Expand All @@ -42,7 +43,9 @@
"generate:openapi"
],
"files": [
"scripts/generate-doc-examples.ts"
"scripts/generate-doc-examples.ts",
"tsconfig.json",
"../../tsconfig.json"
],
"output": [
"src/generated/doc-examples"
Expand Down
2 changes: 2 additions & 0 deletions js/libs/ui-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
"../keycloak-admin-client:build"
],
"files": [
"package.json",
"src",
"tsconfig.json",
"../../tsconfig.json",
"vite.config.ts"
],
"output": [
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"tslib": "^2.8.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.42.0",
"wireit": "^0.14.12"
"wireit": "^0.15.0"
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix"
Expand Down
83 changes: 9 additions & 74 deletions js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions js/themes-vendor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"build": {
"command": "rollup --config && pnpm build:rewrite-import",
"files": [
"package.json",
"rollup.config.js",
"scripts/rewrite-imports.js",
"src"
],
"output": [
Expand Down
Loading
0