Skip to content

Commit be3ebea

Browse files
chore: bump pnpm to v10 in web dockerfile (langgenius#17611)
1 parent 5a6219c commit be3ebea

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.devcontainer/post_create_command.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
npm add -g pnpm@9.12.2
3+
npm add -g pnpm@10.8.0
44
cd web && pnpm install
55
pipx install poetry
66

.github/workflows/web-tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
uses: tj-actions/changed-files@v45
3232
with:
3333
files: web/**
34+
3435
- name: Install pnpm
36+
if: steps.changed-files.outputs.any_changed == 'true'
3537
uses: pnpm/action-setup@v4
3638
with:
3739
version: 10

web/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL maintainer="[email protected]"
66
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
77

88
RUN apk add --no-cache tzdata
9-
RUN npm install -g pnpm@9.12.2
9+
RUN npm install -g pnpm@10.8.0
1010
ENV PNPM_HOME="/pnpm"
1111
ENV PATH="$PNPM_HOME:$PATH"
1212

web/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
66

77
### Run by source code
88

9-
To start the web frontend service, you will need [Node.js v18.x (LTS)](https://nodejs.org/en) and [pnpm version 9.12.2](https://pnpm.io).
9+
Before starting the web frontend service, please make sure the following environment is ready.
10+
- [Node.js](https://nodejs.org) >= v18.x
11+
- [pnpm](https://pnpm.io) v10.x
1012

1113
First, install the dependencies:
1214

0 commit comments

Comments
 (0)