Skip to content

Commit 3858adf

Browse files
committed
👷 update workflow to use pnpm
1 parent 86ad3fd commit 3858adf

5 files changed

Lines changed: 196 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,20 @@ jobs:
105105
- name: Setup Node.js
106106
uses: actions/setup-node@v6
107107
with:
108-
node-version: '24'
108+
node-version: 24
109+
- name: Setup pnpm
110+
uses: pnpm/action-setup@v6
111+
with:
112+
package_json_file: QsNet.Comparison/js/package.json
113+
run_install: false
114+
cache: true
115+
cache_dependency_path: QsNet.Comparison/js/pnpm-lock.yaml
109116
- name: Setup .NET
110117
uses: actions/setup-dotnet@v5
111118
with:
112119
dotnet-version: '10.0.x'
113120
- name: Install JS dependencies
114-
run: npm install
121+
run: pnpm install --frozen-lockfile
115122
working-directory: QsNet.Comparison/js
116123
- name: Run C# comparison
117124
run: dotnet run --project QsNet.Comparison -c Release > cs.out

QsNet.Comparison/js/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
node_modules
2-
package-lock.json

QsNet.Comparison/js/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "A comparison of query string parsing libraries",
55
"author": "Klemen Tusar",
66
"license": "BSD-3-Clause",
7+
"packageManager": "pnpm@11.1.3",
78
"dependencies": {
8-
"qs": "^6.14.2"
9+
"qs": "^6.15.1"
910
}
1011
}

QsNet.Comparison/js/pnpm-lock.yaml

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
packages:
2+
- .
3+
4+
lockfileIncludeTarballUrl: true
5+
minimumReleaseAge: 4320 # 3 days

0 commit comments

Comments
 (0)