Skip to content

tsc build output dir different for prod #93

tsc build output dir different for prod

tsc build output dir different for prod #93

Workflow file for this run

name: Node.js CI
on: [push]
jobs:
unit-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.7.0'
- run: |
cd api
npm ci
npm run test
integration-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.7.0'
- run: |
cd api
npm ci
npm run test:integration
deploy:
name: Deploying to Google Cloud
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Authenticate App Engine
id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Deploy to App Engine
id: deploy
uses: google-github-actions/deploy-appengine@v1
with:
deliverables: api/app.yaml
project_id: ${{ secrets.GCP_PROJECT_ID }}
build_env_vars: |-
DATABASE_HOST=${{ secrets.DATABASE_HOST }}
DATABASE_USER=${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}
NODE_ENV=${{ secrets.NODE_ENV }}
JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}