Skip to content

chore: add step to build app in the deploy ci-job #50

chore: add step to build app in the deploy ci-job

chore: add step to build app in the deploy ci-job #50

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master, development]
jobs:
code_check:
name: Code Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Installing Dependencies
run: npm install
- name: Running prettier
run: npm run prettier:fix
- name: Running eslint
run: npm run lint:fix
- name: Running tests
run: npm run test
- name: Building
run: npm run build
deploy:
name: Deploy to production
if: success() && github.ref == 'refs/heads/master'
needs: [code_check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Building
run: npm run build
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
service-id: ${{ secrets.SERVICE_ID }}
api-key: ${{ secrets.RENDER_API_KEY }}