Skip to content

World's first open-source enterprise world model.

Pin pnpm once, so the image build and CI agree (#27)

WaylandYangb7dcc0ffd8e3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 215c2752..ce079e07 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,9 +33,13 @@ jobs:
working-directory: web
steps:
- uses: actions/checkout@v4
+ # 版本来自 web/package.json 的 packageManager 字段——这里再写一次
+ # 就成了第二个事实来源,两边迟早分叉(镜像构建就是这么炸的)。
+ # package_json_file 必须显式给:上面的 working-directory 只管 run 步骤,
+ # 这个 action 默认在仓库根找 package.json,而根目录是 Cargo workspace。
- uses: pnpm/action-setup@v4
with:
- version: 10
+ package_json_file: web/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
diff --git a/web/package.json b/web/package.json
index f0c077de..879d5af1 100644
--- a/web/package.json
+++ b/web/package.json
@@ -2,6 +2,7 @@
"name": "utopia-web",
"private": true,
"version": "0.1.0",
+ "packageManager": "[email protected]",
"type": "module",
"scripts": {
"dev": "vite",