fix(ci): install Node.js before checkout to fix 'node not found' error
Build and Deploy / build-and-push (push) Failing after 0s

This commit is contained in:
2026-08-06 15:34:18 +08:00
parent ec38778951
commit 9589572b4c
+6 -5
View File
@@ -19,6 +19,12 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Install Node.js
run: |
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
- name: Checkout
uses: actions/checkout@v4
@@ -27,11 +33,6 @@ jobs:
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
working-directory: web
run: pnpm install --frozen-lockfile