Skip to content

Instantly share code, notes, and snippets.

@luisdalmolin
Created June 24, 2025 00:35
Show Gist options
  • Save luisdalmolin/52dd3095d631ee090eeefbd5a3409e06 to your computer and use it in GitHub Desktop.
Save luisdalmolin/52dd3095d631ee090eeefbd5a3409e06 to your computer and use it in GitHub Desktop.
name: Deploy to Production
on:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run typecheck
- name: Deploy to production
run: npm run deploy:production
env:
SST_STAGE: production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment