automate node version
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s

This commit is contained in:
2026-04-24 18:30:10 -05:00
parent 24d126eeb9
commit de2d90f265
9 changed files with 9352 additions and 13 deletions

View File

@@ -10,14 +10,21 @@ jobs:
- name: Pull latest
run: git -C /home/adipu/LabWise pull
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '/home/adipu/LabWise/.node-version'
- name: Update Docker env with Node version
run: |
NODE_VER=$(cat /home/adipu/LabWise/.node-version)
sed -i '/^NODE_VERSION=/d' /home/adipu/LabWise/.env || true
echo "NODE_VERSION=${NODE_VER}-alpine" >> /home/adipu/LabWise/.env
- name: Install dependencies
env:
PATH: /home/adipu/.local/node20/bin:/usr/bin:/bin
run: |
npm install --prefix /home/adipu/LabWise/server
npm audit fix --prefix /home/adipu/LabWise/server
npm install --prefix /home/adipu/LabWise
npm audit fix --prefix /home/adipu/LabWise
- name: Restart app
run: XDG_RUNTIME_DIR=/run/user/1000 systemctl --user restart labwise-app