Skip to content

Commit 88b2adf

Browse files
ci(installer): bump release version with npm instead of pnpm (#194)
The preReleaseCommand failed in craft's container with "pnpm: command not found" -- the image ships npm but not pnpm. Switch to `npm pkg set version`, a plain package.json edit with no install, lockfile, or git-check side effects.
1 parent 222d923 commit 88b2adf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/bump-version.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
### The published artifact is built from packages/installer, so that is the
66
### package.json that must carry the release version -- the repo root is
77
### private and unversioned.
8+
###
9+
### Uses `npm pkg set` rather than pnpm: craft's container ships npm but not
10+
### pnpm, and this is a plain package.json edit -- no install, lockfile, or
11+
### git checks involved.
812
set -euo pipefail
913

1014
NEW_VERSION="${2}"
1115

1216
cd "$(dirname "$0")/../packages/installer"
13-
pnpm version "${NEW_VERSION}" --no-git-tag-version --no-git-checks --allow-same-version
17+
npm pkg set version="${NEW_VERSION}"

0 commit comments

Comments
 (0)