ci: use temporary pnpm for source deploy
This commit is contained in:
parent
38219e98ce
commit
243459eb2d
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@ -182,12 +182,11 @@ jobs:
|
|||||||
git -C "${SOURCE_DIR}" remote add origin "${INSTALL_SPEC}"
|
git -C "${SOURCE_DIR}" remote add origin "${INSTALL_SPEC}"
|
||||||
git -C "${SOURCE_DIR}" fetch --depth 1 origin "${INSTALL_REF}"
|
git -C "${SOURCE_DIR}" fetch --depth 1 origin "${INSTALL_REF}"
|
||||||
git -C "${SOURCE_DIR}" checkout --detach FETCH_HEAD
|
git -C "${SOURCE_DIR}" checkout --detach FETCH_HEAD
|
||||||
if command -v corepack >/dev/null 2>&1; then
|
TOOL_DIR="${STATE_DIR}/tools"
|
||||||
corepack enable
|
npm install --prefix "${TOOL_DIR}" pnpm@10.28.2
|
||||||
corepack prepare pnpm@10.28.2 --activate
|
PNPM="${TOOL_DIR}/node_modules/.bin/pnpm"
|
||||||
fi
|
"${PNPM}" --dir "${SOURCE_DIR}" install --frozen-lockfile
|
||||||
pnpm --dir "${SOURCE_DIR}" install --frozen-lockfile
|
"${PNPM}" --dir "${SOURCE_DIR}" build
|
||||||
pnpm --dir "${SOURCE_DIR}" build
|
|
||||||
npm install -g "${SOURCE_DIR}"
|
npm install -g "${SOURCE_DIR}"
|
||||||
elif [ "${INSTALL_SOURCE}" = "github" ]; then
|
elif [ "${INSTALL_SOURCE}" = "github" ]; then
|
||||||
global_root="$(npm root -g)"
|
global_root="$(npm root -g)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user