ci: Fix Node.js installation by dropping sudo/curl and supporting alpine
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 6m41s

This commit is contained in:
jade
2026-07-27 13:09:01 +09:00
parent 7b8c38489e
commit c8dd43221e
5 changed files with 29 additions and 9 deletions

View File

@@ -12,16 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Node.js (Prerequisite for Github Actions)
- name: Prepare Environment (Install Node.js & Git)
run: |
if ! command -v node &> /dev/null; then
echo "Node.js not found. Installing Node.js 20..."
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
if command -v apt-get &> /dev/null; then
apt-get update
apt-get install -y nodejs git
elif command -v apk &> /dev/null; then
apk add --no-cache nodejs git
fi
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Sync Code to Host Volume
run: |