Skip to content

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

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

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

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 }}