ci: Fix Node.js installation by dropping sudo/curl and supporting alpine
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 6m41s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 6m41s
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user