Skip to content

Commit 12ccf67

Browse files
authored
internal: migrate rest from yarn to pnpm (#1051)
1 parent ba593ce commit 12ccf67

11 files changed

Lines changed: 12398 additions & 9437 deletions

File tree

.github/workflows/js.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4
30+
- name: Setup pnpm
31+
uses: pnpm/action-setup@v2
32+
with:
33+
version: 9
3034
- name: Use Node.js
3135
uses: actions/setup-node@v3
3236
with:
3337
node-version-file: "package.json"
34-
cache: "yarn"
38+
cache: "pnpm"
3539
- name: Install dependencies
3640
run: ./s/ci-install
3741
- name: Typescript
@@ -44,11 +48,15 @@ jobs:
4448
runs-on: ubuntu-latest
4549
steps:
4650
- uses: actions/checkout@v4
51+
- name: Setup pnpm
52+
uses: pnpm/action-setup@v2
53+
with:
54+
version: 9
4755
- name: Use Node.js
4856
uses: actions/setup-node@v3
4957
with:
5058
node-version-file: "package.json"
51-
cache: "yarn"
59+
cache: "pnpm"
5260
- name: Install dependencies
5361
run: ./s/ci-install
5462
- name: Lint JS
@@ -61,11 +69,15 @@ jobs:
6169
runs-on: ubuntu-latest
6270
steps:
6371
- uses: actions/checkout@v4
72+
- name: Setup pnpm
73+
uses: pnpm/action-setup@v2
74+
with:
75+
version: 9
6476
- name: Use Node.js
6577
uses: actions/setup-node@v3
6678
with:
6779
node-version-file: "package.json"
68-
cache: "yarn"
80+
cache: "pnpm"
6981
- name: Install dependencies
7082
run: ./s/ci-install
7183
- name: Check Formatting

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern
55
## Installation
66

77
```console
8-
yarn install
8+
pnpm install
99
```
1010

1111
## Local Development
1212

1313
```console
14-
yarn start
14+
pnpm start
1515
```
1616

1717
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
1818

1919
## Build
2020

2121
```console
22-
yarn build
22+
pnpm build
2323
```
2424

2525
This command generates static content into the `build` directory and can be served using any static contents hosting service.

docs/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
]
3333
},
3434
"volta": {
35-
"node": "20.18.0"
36-
}
35+
"node": "20.18.0",
36+
"pnpm": "9.15.4"
37+
},
38+
"packageManager": "pnpm@9.15.4"
3739
}

0 commit comments

Comments
 (0)