chore: update node and pnpm

This commit is contained in:
Yangshun
2026-03-20 13:50:46 +08:00
parent 4b0cc4392f
commit a5c9b684ae
5 changed files with 7423 additions and 5956 deletions

View File

@@ -31,14 +31,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '16'
cache: yarn
node-version: '25.8.1'
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Installation
run: yarn
- name: Check immutable yarn.lock
run: git diff --exit-code
run: pnpm install --frozen-lockfile
- name: Lint
run: yarn lint
run: pnpm lint

View File

@@ -21,17 +21,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '16'
cache: yarn
node-version: '25.8.1'
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Installation
run: yarn
- name: Check immutable yarn.lock
run: git diff --exit-code
run: pnpm install --frozen-lockfile
# Build the shared types in dependent packages.
- name: Build dependencies
run: yarn turbo run build --filter=ui
run: pnpm turbo run build --filter=ui
- name: Typecheck
run: yarn tsc
run: pnpm tsc

View File

@@ -4,10 +4,10 @@ This website is built using Docusaurus 2, a modern static website generator. It
### Installation
We use Yarn 1 as the package manager. At the root of the repository, run `yarn` to install the monorepo dependencies.
We use pnpm as the package manager. At the root of the repository, run `pnpm install` to install the monorepo dependencies.
```sh
$ yarn
$ pnpm install
```
### Local Development
@@ -15,7 +15,7 @@ $ yarn
Also at the root of the repository, run:
```sh
$ yarn dev:website
$ pnpm dev:website
```
This command starts a local development server and opens up a browser window. Most changes made to JavaScript and Markdown files will be reflected instantly without having to restart the server.
@@ -26,7 +26,7 @@ Navigate to the `apps/website` directory.
```sh
cd apps/website
$ yarn build
$ pnpm build
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
@@ -34,7 +34,7 @@ This command generates static content into the `build` directory and can be serv
### Deployment
```
$ GIT_USER=<Your GitHub username> USE_SSH=1 yarn deploy
$ GIT_USER=<Your GitHub username> USE_SSH=1 pnpm deploy
```
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.

View File

@@ -26,8 +26,8 @@
"turbo": "1.5.6"
},
"engines": {
"node": "18.19.2",
"pnpm": "8.15.8"
"node": "25.8.1",
"pnpm": "10.32.1"
},
"packageManager": "pnpm@8.15.8"
"packageManager": "pnpm@10.32.1"
}

13335
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff