Skip to content

build & deploy nestjs-clerk #2

build & deploy nestjs-clerk

build & deploy nestjs-clerk #2

Workflow file for this run

name: 📦
run-name: build & deploy ${{ inputs.project }}
on:
workflow_dispatch:
inputs:
project:
type: string
required: true
description: name of project to build (folder name)
workflow_call:
inputs:
project:
type: string
required: true
description: name of project to build (folder name)
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Prepare repository
uses: ./.github/actions/prepare
with:
project: ${{ inputs.project }}
- name: Run tests
working-directory: ${{ inputs.project }}
run: npm run test --if-present
- name: Try build
working-directory: ${{ inputs.project }}
run: npm run build --if-present
- name: Deploy
working-directory: ${{ inputs.project }}
run: npm run deploy --if-present