build(ci): cache key hash.
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 43s

This commit is contained in:
Ivan Li 2023-07-09 09:28:04 +00:00
parent dbb35eb462
commit 1e7cb5c942

View File

@ -31,11 +31,22 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/setup-go@v3
with:
go-version: '1.20'
- uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
go.sum
**/pnpm-lock.yaml
- uses: https://github.com/actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: test_xxxxx
key: ${{ runner.os }}-pnpm-store-${{ steps.get-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-pnpm-store-