Skip to content

Commit 240f610

Browse files
committed
ci: fix fnm path issue
1 parent 37868cd commit 240f610

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ jobs:
8282
. $EC2_USER@$EC2_HOST:~/server/
8383
8484
# Install prod dependencies on EC2
85-
ssh -i ~/.ssh/id_rsa $EC2_USER@$EC2_HOST
86-
"export PATH=\"\$HOME/.fnm:$PATH\" &&
87-
cd ~/server &&
88-
eval \$(fnm env) &&
89-
npm install --frozen-lockfile"
85+
ssh -i ~/.ssh/id_rsa $EC2_USER@$EC2_HOST '
86+
cd ~/server &&
87+
eval "$(fnm env)" &&
88+
npm install --frozen-lockfile'
89+
9090
9191
# Stop existing pm2
9292
ssh -i ~/.ssh/id_rsa $EC2_USER@$EC2_HOST

0 commit comments

Comments
 (0)