chore: update node and pnpm

pull/750/head
Yangshun 7 months ago
parent 4b0cc4392f
commit a5c9b684ae

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

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

@ -4,10 +4,10 @@ This website is built using Docusaurus 2, a modern static website generator. It
### Installation ### 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 ```sh
$ yarn $ pnpm install
``` ```
### Local Development ### Local Development
@ -15,7 +15,7 @@ $ yarn
Also at the root of the repository, run: Also at the root of the repository, run:
```sh ```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. 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 ```sh
cd apps/website 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. 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 ### 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. 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.

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

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save