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 }}