Skip to content

addd

addd #4

Workflow file for this run

name: Node.js CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [22.x] # Use LTS versions
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build Application
run: npm run build --if-present
- name: Set Environment Variables
run: |
touch .env
echo "${{ secrets.PROD_ENV_FILE }}" >> .env