fix(ci): install Node.js directly in runner container with apt-get
Build and Deploy / build-and-push (push) Failing after 0s

This commit is contained in:
2026-08-06 15:40:56 +08:00
parent f3c89d35a7
commit 2bf410c825
+8 -1
View File
@@ -17,9 +17,16 @@ env:
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: node:22-bookworm
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps: steps:
- name: Install Node.js
run: |
apt-get update
apt-get install -y curl
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
node --version
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4