Skip to content

ci: add deploy job

ci: add deploy job #8

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, npm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Build Packages
run: npm run build
shell: bash
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, npm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Run unit tests
run: npm run test:ci
shell: bash
- name: Cypress run
uses: cypress-io/github-action@v6
with:
browser: chrome
start: npm start
env:
CYPRESS_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, npm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Lint Packages
run: npm run lint
shell: bash
deploy:
- name: Deploy to Render and release

Check failure on line 64 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 64
runs-on: ubuntu-latest
needs: [build, test, lint]
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to Render
env:
DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL}}
run: curl "$DEPLOY_HOOK_URL"
shell: bash
- name: Release
run: npm run release --ci