18 lines
409 B
YAML
18 lines
409 B
YAML
name: NPM Cache
|
|
description: Caches NPM artifacts
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- id: weekly-cache-key
|
|
name: Key for weekly rotation of cache
|
|
shell: bash
|
|
run: echo "key=npm-`date -u "+%Y-%U"`" >> $GITHUB_OUTPUT
|
|
|
|
- id: cache-npm-repository
|
|
name: NPM cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ steps.weekly-cache-key.outputs.key }}
|