Created
June 24, 2025 00:35
-
-
Save luisdalmolin/52dd3095d631ee090eeefbd5a3409e06 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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