Skip to content

Commit 8b46d66

Browse files
committed
ci: set nvm path before invoking npm
1 parent 3650095 commit 8b46d66

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/deploy-application.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ jobs:
3434
port: ${{ secrets.SSH_PORT }}
3535
key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }}
3636
script: |
37+
# Non-interactive SSH does not load ~/.bashrc; nvm lives there.
38+
export NVM_DIR="${NVM_DIR:-$HOME/.nvm}"
39+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
3740
cd ${{ secrets.SSH_PATH }}
3841
git pull
3942
cd web/app/plugins/cbf-multisite
40-
echo "SHELL=$SHELL"
41-
echo "PATH=$PATH"
42-
command -v npm || true
43-
type npm || true
44-
# npm ci && npm run build:assets
43+
npm ci && npm run build:assets
4544
4645
check:
4746
needs: [deploy]

0 commit comments

Comments
 (0)