keycloak-scim/.github/actions/node-cache/action.yml
Stian Thorgersen 9681bce5fa
Update node-cache/action.yml to use mvnw (#34438)
Signed-off-by: stianst <stianst@gmail.com>
2024-10-29 12:26:38 +00:00

21 lines
894 B
YAML

name: Node Cache
description: Caches Node and PNPM binaries
runs:
using: composite
steps:
- name: Get Node.js and PNPM versions
id: tooling-versions
shell: bash
run: |
echo "node=$(./mvnw help:evaluate -Dexpression=node.version -q -DforceStdout | cut -c 2-)" >> $GITHUB_OUTPUT
echo "pnpm=$(./mvnw help:evaluate -Dexpression=pnpm.version -q -DforceStdout)" >> $GITHUB_OUTPUT
# Downloading Node.js often fails due to network issues, therefore we cache the artifacts downloaded by the frontend plugin.
- uses: actions/cache@v4
name: Cache Node.js and PNPM binaries
with:
path: |
~/.m2/repository/com/github/eirslett/node
~/.m2/repository/com/github/eirslett/pnpm
key: ${{ runner.os }}-frontend-plugin-artifacts-${{ steps.tooling-versions.outputs.node }}-${{ steps.tooling-versions.outputs.pnpm }}