Skip to content

Commit

Permalink
ci: add build workflow (#98)
Browse files Browse the repository at this point in the history
* ci: add build workflow

- Added a new build workflow for the application.
- Updated the package name in `package.json` to align with project conventions.
- Removed the `predeploy` script as it is no longer required in the build process.

* fix: react version

* fix: install packages again to sync

* fix: downgrade @icons-pack/react-simple-icons to version 10.2.0

- Downgraded `@icons-pack/react-simple-icons` to version 10.2.0.
- Restores the removed LinkedIn and other Microsoft-related icons present in earlier versions.
- Ensures compatibility with the application's icon requirements.

* fix: html element ref object null type issue
  • Loading branch information
Fingertips18 authored Jan 18, 2025
1 parent 5717ddc commit 89d4552
Show file tree
Hide file tree
Showing 10 changed files with 307 additions and 275 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Portfolio - Build

on:
pull_request:
branches:
- main

jobs:
build:
name: Build Application
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest

- name: Cache Node Modules
uses: actions/cache@v4
with:
path: |
~/.npm
node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci --cache .npm --prefer-offline

- name: Run Build
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Loading

0 comments on commit 89d4552

Please sign in to comment.