Skip to content

Merge pull request #36 from NextStepFinalProject/feat-add-3-skills-to… #371

Merge pull request #36 from NextStepFinalProject/feat-add-3-skills-to…

Merge pull request #36 from NextStepFinalProject/feat-add-3-skills-to… #371

name: Frontend - Run build
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: nextstep-frontend
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create envfile
uses: SpicyPizza/create-envfile@v2.0.3
with:
envkey_VITE_PORT: 5000
envkey_VITE_BACKEND_URL: http://localhost:3000
file_name: nextstep-frontend/.env
fail_on_empty: true
sort_keys: false
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm i
- name: Run build
run: npm run build