Skip to content

feat(cicd) Create main.yml workflow #1

feat(cicd) Create main.yml workflow

feat(cicd) Create main.yml workflow #1

Workflow file for this run

name: DevOps Engineer Assignment Workflow
on:
push:
branches: [main, dev]
defaults:
run:
shell: bash
jobs:
Build:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: ./frontend
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
refs: ${{ github.refs_name }}
- name: Setup node
uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- name: Create production build folder
run: npm run build --if-present