mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-29 00:19:02 +00:00
docs(README): add multiple lockfile example
This commit is contained in:
parent
ae488f7874
commit
db33b71bfe
27
README.md
27
README.md
@ -158,6 +158,33 @@ jobs:
|
|||||||
|
|
||||||
**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
|
**Note:** You don't need to run `pnpm store prune` at the end; post-action has already taken care of that.
|
||||||
|
|
||||||
|
### Cache dependencies from multiple lockfiles
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cache-and-install-multiple:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
version: 10
|
||||||
|
cache: true
|
||||||
|
cache_dependency_path: |
|
||||||
|
one/pnpm-lock.yaml
|
||||||
|
two/pnpm-lock.yaml
|
||||||
|
run_install: |
|
||||||
|
- cwd: one
|
||||||
|
- cwd: two
|
||||||
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
This action does not setup Node.js for you, use [actions/setup-node](https://github.com/actions/setup-node) yourself.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user