Skip to content

Commit d5ea1d5

Browse files
committed
fix: prevent pnpm lock file from incorrectly being updated on install and add explicit update script to update use w/o frozen lock file option
1 parent 33931e3 commit d5ea1d5

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.github/workflows/pre-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: sudo apt-get install -y protobuf-compiler
3939

4040
- name: Install dependencies
41-
run: pnpm install
41+
run: pnpm install --frozen-lockfile
4242

4343
- name: Build packages
4444
run: pnpm run build

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: sudo apt-get install -y protobuf-compiler
3636

3737
- name: Install dependencies
38-
run: pnpm install
38+
run: pnpm install --frozen-lockfile
3939

4040
- name: Build packages
4141
run: pnpm run build

.gitpod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ tasks:
44
init: |
55
nvm install v23.3.0
66
git checkout $(git describe --tags --abbrev=0)
7-
command: pnpm install && pnpm run build
8-
7+
command: pnpm install --frozen-lockfile && pnpm run build
8+

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ COPY scripts ./scripts
2424
COPY characters ./characters
2525

2626
# Install dependencies and build the project
27-
RUN pnpm install \
27+
RUN pnpm install --frozen-lockfile \
2828
&& pnpm build-docker \
2929
&& pnpm prune --prod
3030

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "eliza",
33
"scripts": {
4+
"install": "pnpm i -r --frozen-lockfile",
5+
"i": "pnpm i -r --frozen-lockfile",
6+
"update": "pnpm i -r",
47
"preinstall": "npx only-allow pnpm",
58
"build": "turbo run build --filter=!eliza-docs",
69
"build-docker": "turbo run build",

scripts/start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121

2222
# Install dependencies
2323
echo -e "\033[1mInstalling dependencies...\033[0m"
24-
if ! pnpm i; then
24+
if ! pnpm i --frozen-lockfile; then
2525
echo -e "\033[1;31mFailed to install dependencies\033[0m"
2626
exit 1
2727
fi

0 commit comments

Comments
 (0)