Skip to content

Merge pull request #19 from tomrpl/feat/fixing-warning-return-error #49

Merge pull request #19 from tomrpl/feat/fixing-warning-return-error

Merge pull request #19 from tomrpl/feat/fixing-warning-return-error #49

Workflow file for this run

name: Build and Deploy to Netlify
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.3.0" # Use the Node.js version specified in your project
- name: Install dependencies
run: yarn install
- name: Build project
run: yarn build
- name: Deploy to Netlify
run: npx netlify deploy --dir=build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}