node
This commit is contained in:
parent
7c6ca4bd71
commit
a8716ccb24
2 changed files with 24 additions and 1 deletions
|
|
@ -19,6 +19,19 @@ jobs:
|
||||||
timeout-minutes: 360 # 6 hours
|
timeout-minutes: 360 # 6 hours
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
# Try to install nodejs if missing (required for actions)
|
||||||
|
if ! command -v node &> /dev/null; then
|
||||||
|
echo "Node.js not found, installing..."
|
||||||
|
# Check if running as root
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
apt-get update && apt-get install -y nodejs npm
|
||||||
|
else
|
||||||
|
sudo apt-get update && sudo apt-get install -y nodejs npm
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,20 @@ jobs:
|
||||||
deploy-web:
|
deploy-web:
|
||||||
name: Deploy Web App
|
name: Deploy Web App
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/cirruslabs/flutter::3.35.5
|
container: ghcr.io/cirruslabs/flutter:3.35.5
|
||||||
needs: deploy-backend
|
needs: deploy-backend
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
if ! command -v node &> /dev/null; then
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
apt-get update && apt-get install -y nodejs npm
|
||||||
|
else
|
||||||
|
sudo apt-get update && sudo apt-get install -y nodejs npm
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue