Skip to content

Commit 8aac20a

Browse files
authored
Switch to pnpm (#54)
1 parent 31aa54d commit 8aac20a

File tree

16 files changed

+14040
-11425
lines changed

16 files changed

+14040
-11425
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515

1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 20
19-
cache: yarn
18+
node-version: lts/*
2019

21-
- run: yarn install --pure-lockfile
22-
- run: yarn prepack
20+
- uses: pnpm/action-setup@v4
21+
22+
- run: pnpm install --frozen-lockfile
23+
- run: pnpm prepack
2324

2425
- name: Build docs
25-
run: cd docs && yarn && yarn build
26+
run: cd docs && pnpm install && pnpm build
2627

2728
- name: Deploy
2829
if: "contains('refs/heads/main', github.ref)"

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node-linker=hoisted
2+
save-exact=false

docs/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node-linker=hoisted
2+
save-exact=true

docs/README.md

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

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

1111
### Local Development
1212

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

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

1919
### Build
2020

2121
```
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.
@@ -29,13 +29,13 @@ This command generates static content into the `build` directory and can be serv
2929
Using SSH:
3030

3131
```
32-
$ USE_SSH=true yarn deploy
32+
$ USE_SSH=true pnpm deploy
3333
```
3434

3535
Not using SSH:
3636

3737
```
38-
$ GIT_USER=<Your GitHub username> yarn deploy
38+
$ GIT_USER=<Your GitHub username> pnpm deploy
3939
```
4040

4141
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

0 commit comments

Comments
 (0)