mirror of
https://github.com/pnpm/action-setup.git
synced 2026-06-29 17:03:46 +08:00
Compare commits
1 Commits
3e835812ef
...
fix-standa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ecdba80af |
29
README.md
29
README.md
@@ -48,7 +48,7 @@ If `run_install` is a YAML string representation of either an object or an array
|
|||||||
|
|
||||||
### `cache_dependency_path`
|
### `cache_dependency_path`
|
||||||
|
|
||||||
**Optional** (_type:_ `string`, _default:_ `pnpm-lock.yaml`) File path to the pnpm lockfile, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
|
**Optional** (_type:_ `string|string[]`, _default:_ `pnpm-lock.yaml`) File path to the pnpm lockfile, which contents hash will be used as a cache key.
|
||||||
|
|
||||||
### `package_json_file`
|
### `package_json_file`
|
||||||
|
|
||||||
@@ -158,33 +158,6 @@ 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.
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
cache_dependency_path:
|
cache_dependency_path:
|
||||||
description: File path to the pnpm lockfile, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
|
description: File path to the pnpm lockfile, which contents hash will be used as a cache key
|
||||||
required: false
|
required: false
|
||||||
default: 'pnpm-lock.yaml'
|
default: 'pnpm-lock.yaml'
|
||||||
package_json_file:
|
package_json_file:
|
||||||
|
|||||||
Reference in New Issue
Block a user