Comments (10)
@privatenumber It's just to keep cache size to a minimum.
from action-setup.
Use actions/cache for that.
from action-setup.
Maybe add an example to the docs then? This is what I came up with:
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
# pnpm cache files are stored in `~/.pnpm-store` on Linux/macOS
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}
restore-keys: |
{{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}
and
- name: clean pnpm store
run: store prune
at the end
from action-setup.
You don't need to run pnpm prune
directly since post-action of pnpm/action-setup does it for you. Otherwise, it is a good pull request.
from action-setup.
will send PR, and thanks for the info on the prune.
from action-setup.
What's the benefit of running pnpm store prune
at the end? Is it just to keep the cache size to a minimum? Or is it somehow necessary for expected behavior?
from action-setup.
Cache's path
needs to be set to action's dest
input, or is always ~/.pnpm-store
?
Can I use dest
output like the following example?
- uses: pnpm/[email protected]
id: pnpm-install
with:
version: 7
run_install: false
- uses: actions/cache@v3
name: Packages cache
with:
path: ${{ steps.pnpm-install.outputs.dest }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
In readme states: "Where to store pnpm files" is this that should be cached or includes pnpm internal files?
EDIT: This does not work as expected, since
dest
output is not the pnpm store directory. Solucion provided in #41
from action-setup.
There are other directories documented at https://pnpm.io/npmrc#store-dir. Is that directory the intended to be set in the path
input?
from action-setup.
no, store-dir should not be in PATH
from action-setup.
no, store-dir should not be in PATH
I meant, the path
input of this action. 😅
from action-setup.
Related Issues (20)
- Build script fails with "Cannot augment module '_' with value exports because it resolves to a non-module entity."
- Duplicate message in error: in the package.json with the key "packageManager" HOT 1
- How does this compare to `run: corepack enable`? HOT 10
- `dest` not working HOT 1
- The inferred type of "X" cannot be named without a reference to "Y". This is likely not portable. A type annotation is necessary.
- Feature Request: add builtin cache support HOT 3
- Using pnpm/action-setup in a subdirectory of a git repoository is giving: ENOENT: no such file or directory HOT 10
- [Q] Setup Node Cache HOT 4
- Parse package.json from subfolder HOT 1
- [feature request] Use version of pnpm specified in package.json's engines section HOT 1
- Make `version` optional HOT 2
- The version of pnpm is not being retrieved from the packageManager field in the package.json. HOT 6
- How to cache pnpm ? HOT 1
- README references old versions of pnpm
- Installing pnpm when the package.json isn't in the root directory HOT 3
- Enable Code Scanning & Address Code Quality Issues HOT 4
- `v2` not up to date HOT 5
- Invalid
- EACCES: permission denied when running in a container w/ non-default user
- node20 support HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-setup.