Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Apr 6, 2024
1 parent 128d383 commit d4942d4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/platform/install-nodejs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ if [ "$URL" == "" ]; then
fi

export PATH="${HOME}/.local/nodejs/bin:$PATH"
export PATH="${HOME}/.local/nodejs/prefix:$PATH"
export NPM_CONFIG_PREFIX=$HOME/.local/nodejs/prefix

echo "${HOME}/.local/nodejs/bin" >> $GITHUB_PATH
echo "${HOME}/.local/nodejs/prefix" >> $GITHUB_PATH
echo "NPM_CONFIG_PREFIX=${NPM_CONFIG_PREFIX}" >> $GITHUB_PATH

mkdir -p $HOME/.local/nodejs
Expand All @@ -68,24 +70,22 @@ mkdir -p $HOME/.local/nodejs/cache
mkdir -p $HOME/.local/nodejs/pnpm-store

curl -s -L --url $URL | tar -xzf - -C $HOME/.local/nodejs --strip-components=1
npm install -g pnpm npm

# ls -l -a $HOME/.local/nodejs
# ls -l -a $HOME/.local/nodejs/bin
ls -l -a $HOME/.local/nodejs/prefix
ls -l -a $HOME/.local/nodejs/prefix/bin
# ls -l -a $HOME/.local/nodejs/prefix
# ls -l -a $HOME/.local/nodejs/prefix/bin
# ls -l -a $HOME/.local/nodejs/cache

# which node
# which npm

# npm config set prefix $HOME/.local/nodejs/prefix
# npm config set cache $HOME/.local/nodejs/cache
# npm install -g pnpm npm

# npm -v
# node -v
# pnpm -v
npm install -g pnpm npm

npm -v
node -v
pnpm -v

# pnpm config set store-dir $HOME/.local/nodejs/pnpm-store
pnpm config set store-dir $HOME/.local/nodejs/pnpm-store

0 comments on commit d4942d4

Please sign in to comment.