ci: use login shell (bash -l) to fix npm PATH on host runner

This commit is contained in:
Fam Zheng 2026-04-07 10:43:17 +01:00 committed by Fam Zheng
parent bd3842f854
commit 720c32c485

View File

@ -8,8 +8,9 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: self-hosted runs-on: self-hosted
env: defaults:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/fam/.cargo/bin:/home/fam/.local/bin run:
shell: bash -l {0}
steps: steps:
- name: Checkout - name: Checkout
run: | run: |
@ -20,7 +21,7 @@ jobs:
fi fi
- name: Install frontend dependencies - name: Install frontend dependencies
run: cd web && /usr/bin/npm ci run: cd web && npm ci
- name: Deploy to OCI - name: Deploy to OCI
run: make deploy-oci run: make deploy-oci