Skip to content

refactor(ci/cd)Update main.yml #2

refactor(ci/cd)Update main.yml

refactor(ci/cd)Update main.yml #2

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
with:
node_version: '14.21.3'
- name: Install dependencies
run: npm install
- name: Create production build folder
run: npm run build --if-present