Skip to content

set node_env to be production when deploy #24

set node_env to be production when deploy

set node_env to be production when deploy #24

Workflow file for this run

name: Deploy main branch development
on:
push:
branches:
- main
- deploy
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
env:
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}'
DATABASE_URL: '${{ secrets.DATABASE_URL }}'
NODE_ENV: 'production'
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: serverless deploy
uses: serverless/github-action@v3.2
with:
args: -c "cd ./apps/server && serverless deploy --stage production"
entrypoint: /bin/sh