Compare commits

..

2 Commits

Author SHA1 Message Date
Pablo Espinosa
6d513afc14 Merge 0a6987ad74 into 5656298164 2026-02-25 09:59:26 +01:00
Pablo Espinosa
0a6987ad74 Added docs for pnpm 2026-02-20 01:25:55 +00:00
3 changed files with 305 additions and 5272 deletions

View File

@@ -24,6 +24,7 @@
- [Node - Lerna](#node---lerna)
- [Node - Yarn](#node---yarn)
- [Node - Yarn 2](#node---yarn-2)
- [Node - pnpm](#node---pnpm)
- [OCaml/Reason - esy](#ocamlreason---esy)
- [PHP - Composer](#php---composer)
- [Python - pip](#python---pip)
@@ -409,6 +410,38 @@ The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/c
${{ runner.os }}-yarn-
```
### Node - pnpm
```yaml
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
id: cache-pnpm
with:
path: ${{ steps.pnpm-cache.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install --frozen-lockfile
```
## OCaml/Reason - esy
Esy allows you to export built dependencies and import pre-built dependencies.

5540
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@
"@actions/io": "^2.0.0"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/jest": "^29.5.14",
"@types/nock": "^11.1.0",
"@types/node": "^24.1.0",
"@typescript-eslint/eslint-plugin": "^7.2.0",
@@ -41,7 +41,7 @@
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.5.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"jest": "^30.2.0",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"nock": "^13.2.9",
"prettier": "^3.6.2",