keycloak-scim/.github/actions/pnpm-store-cache/action.yml
Jon Koops b44aee7535
Use a weekly cache key for PNPM store (#34656)
Closes #34655

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-11-06 08:25:49 +01:00

20 lines
586 B
YAML

name: Cache PNPM store
description: Caches the PNPM store to speed up the build.
runs:
using: composite
steps:
- id: weekly-cache-key
name: Key for weekly rotation of cache
shell: bash
run: echo "key=pnpm-store-`date -u "+%Y-%U"`" >> $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 }}-${{ steps.weekly-cache-key.outputs.key }}