keycloak-scim/.github/actions/frontend-plugin-cache/action.yml
Stian Thorgersen 4b605382f7
Use mwvn instead of mvn in frontend-plugin-cache (#34296)
Signed-off-by: stianst <stianst@gmail.com>
2024-10-24 13:48:48 +00:00

21 lines
712 B
YAML

name: Frontend Plugin Cache
description: Caches NPM dependencies for the frontend-maven-plugin to speed up builds
runs:
using: composite
steps:
- name: Get PNPM version
id: pnpm-version
shell: bash
run: |
echo "version=$(./mvnw help:evaluate -Dexpression=pnpm.version -q -DforceStdout)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Cache PNPM store
with:
# See: https://pnpm.io/npmrc#store-dir
path: |
~/.local/share/pnpm/store
~/AppData/Local/pnpm/store
~/Library/pnpm/store
key: ${{ runner.os }}-frontend-plugin-pnpm-store-${{ steps.pnpm-version.outputs.version }}-${{ hashFiles('pnpm-lock.yaml') }}