mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-05 05:15:48 +00:00
Add PATH export to CI scripts for Node.js and pnpm setup
This commit is contained in:
2
scripts/ci/ci-node-path.sh
Normal file
2
scripts/ci/ci-node-path.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
@@ -46,5 +46,21 @@ echo "SHA256 verified: ${ACTUAL}"
|
||||
sudo tar -xJf /tmp/node.tar.xz -C /usr/local --strip-components=1
|
||||
rm -f /tmp/node.tar.xz /tmp/node-shasums.txt
|
||||
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
|
||||
# Act / Gitea runners often ship an older Node in /usr/bin; later steps start a new shell.
|
||||
if [ -n "${GITHUB_ENV:-}" ]; then
|
||||
echo "PATH=/usr/local/bin:$PATH" >> "$GITHUB_ENV"
|
||||
fi
|
||||
if [ -n "${GITEA_ENV:-}" ]; then
|
||||
echo "PATH=/usr/local/bin:$PATH" >> "$GITEA_ENV"
|
||||
fi
|
||||
if [ -n "${GITHUB_PATH:-}" ]; then
|
||||
echo "/usr/local/bin" >> "$GITHUB_PATH"
|
||||
fi
|
||||
if [ -n "${GITEA_PATH:-}" ]; then
|
||||
echo "/usr/local/bin" >> "$GITEA_PATH"
|
||||
fi
|
||||
|
||||
node --version
|
||||
npm --version
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
# Usage: setup-pnpm.sh [version]
|
||||
set -eu
|
||||
|
||||
export PATH="/usr/local/bin:$PATH"
|
||||
|
||||
PNPM_VERSION="${1:-10.32.1}"
|
||||
|
||||
corepack enable
|
||||
|
||||
Reference in New Issue
Block a user