044d71bd77
Closes #33767 Co-authored-by: Jon Koops <jonkoops@gmail.com> Signed-off-by: Ryan Emerson <remerson@redhat.com>
21 lines
888 B
YAML
21 lines
888 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=$(mvn help:evaluate -Dexpression=node.version -q -DforceStdout | cut -c 2-)" >> $GITHUB_OUTPUT
|
|
echo "pnpm=$(mvn 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 }}
|