Skip to content

Commit

Permalink
feat: added build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
abu-osos committed May 27, 2024
1 parent 8440dfb commit 0fba72c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Angular App

on:
push:
branches: [ master ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.yarn
key: ${{ runner.os }}-build-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build Angular app
run: yarn build

# - name: Upload production artifacts
# uses: actions/upload-artifact@v3
# with:
# name: dist
# path: dist

0 comments on commit 0fba72c

Please sign in to comment.