Skip to content

Commit 229ffad

Browse files
fix: pnpm
1 parent a8bdcab commit 229ffad

File tree

6 files changed

+71
-100
lines changed

6 files changed

+71
-100
lines changed

.github/file-filters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ code:
99
- "src/**"
1010
- "tests/**"
1111
- "package.json"
12-
- "package-lock.json"
12+
- "pnpm-lock.yaml"

.github/workflows/prettier.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,22 @@ jobs:
2525
with:
2626
show-progress: false
2727

28-
- name: Setup Node.js
28+
- name: Install pnpm
29+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
30+
31+
- name: Set up node
2932
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3033
with:
31-
node-version-file: ".nvmrc"
32-
cache: "npm"
33-
cache-dependency-path: package-lock.json
34+
node-version-file: package.json
35+
cache: pnpm
36+
cache-dependency-path: pnpm-lock.yaml
3437

3538
- name: Install dependencies
3639
shell: bash
3740
run: |
38-
npm ci --ignore-scripts
41+
pnpm install --frozen-lockfile
3942
4043
- name: Run Prettier
4144
shell: bash
4245
run: |
43-
npx --no-install prettier --check .
46+
pnpm exec prettier --check .

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

Lines changed: 0 additions & 90 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"version": "0.0.0-development",
44
"description": "It's written in Rust!",
55
"main": "src/main.rs",
6+
"packageManager": "pnpm@9.0.4",
67
"scripts": {
78
"format": "prettier --write .",
89
"release": "semantic-release"
910
},
1011
"engines": {
11-
"node": ">=22.17.0",
12-
"npm": ">=11.4.2"
12+
"node": "22.17.0",
13+
"pnpm": "9.0.4"
1314
},
1415
"repository": {
1516
"type": "git",

pnpm-lock.yaml

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)