mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-02 02:11:49 +00:00
Compare commits
1 Commits
d656a12fa5
...
3810288b3a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3810288b3a |
13
README.md
13
README.md
@ -150,6 +150,19 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Get pnpm store directory
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
name: Setup pnpm cache
|
||||||
|
with:
|
||||||
|
path: ${{ env.STORE_PATH }}
|
||||||
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user