Skip to content

[80] Fixes for Hero component #47

[80] Fixes for Hero component

[80] Fixes for Hero component #47

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build
- name: Deploy to Netlify
if: github.ref == 'refs/heads/main'
run: npx netlify-cli deploy --dir=dist --site=$NETLIFY_SITE_ID --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}