Install Node.js and build frontend assets with Vite
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 1m41s

This commit is contained in:
vickytechkey 2026-09-08 21:19:06 +05:30
parent ea6cffa474
commit 78084b1d58

View file

@ -32,7 +32,11 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y php8.4-fpm php8.4-cli php8.4-pgsql php8.4-mbstring php8.4-xml php8.4-curl php8.4-zip php8.4-bcmath php8.4-intl php8.4-redis php8.4-gd
# 3. Install Composer (PHP Package Manager)
# 3. Install Node.js (required for Vite frontend assets)
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
# 4. Install Composer (PHP Package Manager)
if ! command -v composer &> /dev/null; then
echo "Installing Composer..."
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
@ -74,6 +78,10 @@ jobs:
# Install PHP dependencies
composer install --no-interaction --prefer-dist --optimize-autoloader
# Install Node.js dependencies and build frontend assets
npm install
npm run build
# Setup Laravel environment file and key
if [ ! -f .env ]; then
cp .env.example .env