Skip to content

Adjust frontend documentation to new changes #211

Adjust frontend documentation to new changes

Adjust frontend documentation to new changes #211

Workflow file for this run

name: Deploy React App
on:
push:
branches:
- dev # Adjust this to your main branch
jobs:
deploy:
runs-on: dev
defaults:
run:
working-directory: ./frontend
steps:

Check failure on line 15 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.17.1" # Adjust this to your required Node version
- name: Install Pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Format code
run: pnpm format
- name: Lint code
run: pnpm oxlint
- name: Run tests
run: pnpm run test
- name: Build project
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: NODE_OPTIONS="--max-old-space-size=4096" pnpm run build
- name: Postbuild project
run: pnpm run postbuild
- name: Deploy to server
run: |
rm -rf /var/www/INSIGHTS/frontend/dist/*
cp -r ./dist/* /var/www/INSIGHTS/frontend/dist
sudo systemctl restart nginx