Skip to content

Commit ecfe309

Browse files
committed
Use pnpm in CI
1 parent 1bc719f commit ecfe309

4 files changed

Lines changed: 20 additions & 1073 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ jobs:
2626
with:
2727
node-version: 20.x
2828

29+
- name: Install pnpm
30+
uses: pnpm/action-setup@v4
31+
with:
32+
version: 8
33+
2934
- name: Install Dependencies
30-
run: npm ci
35+
run: pnpm ci
3136

3237
- name: Create release pull request or publish to npm
3338
id: changesets
3439
uses: changesets/action@v1
3540
with:
36-
publish: npm run ci:release
41+
publish: pnpm run ci:release
3742
env:
3843
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3944
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -59,10 +64,10 @@ jobs:
5964
node-version: 20.x
6065

6166
- name: Install Dependencies
62-
run: npm ci
67+
run: pnpm ci
6368

6469
- name: Generate Docs
65-
run: npm run doc
70+
run: pnpm run doc
6671

6772
- name: Setup pages
6873
uses: actions/configure-pages@v4

.github/workflows/test-prs.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818
with:
1919
node-version: 20.x
2020
cache: 'npm'
21-
- run: npm ci
22-
- run: npm run build
23-
- run: npm test
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 8
26+
27+
- run: pnpm ci
28+
- run: pnpm run build
29+
- run: pnpm test
2430

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"format": "eslint --fix .",
99
"doc": "typedoc ./src --media ./media --plugin typedoc-plugin-extras --favicon ./media/logo.png --footerLastModified true --plugin typedoc-material-theme --themeColor '#03284e' --plugin typedoc-plugin-rename-defaults",
1010
"test": "vitest",
11-
"build": "rm -rf dist && npm run build:js && npm run build:types",
11+
"build": "rm -rf dist && pnpm run build:js && pnpm run build:types",
1212
"build:js": "node build.mjs",
1313
"build:types": "tsc -p tsconfig.types.json",
14-
"ci:release": "npm run build && changeset publish"
14+
"ci:release": "pnpm run build && changeset publish"
1515
},
1616
"keywords": [],
1717
"files": [
@@ -51,7 +51,6 @@
5151
"eslint-plugin-prettier": "^5.1.3",
5252
"globals": "^15.0.0",
5353
"highland": "^2.13.5",
54-
"npm-run-all": "^4.1.5",
5554
"prettier": "3.2.5",
5655
"typedoc": "^0.25.7",
5756
"typedoc-material-theme": "^1.0.2",

0 commit comments

Comments
 (0)