Skip to content

chore: update build flow #48

chore: update build flow

chore: update build flow #48

Workflow file for this run

name: Build
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-1
role-duration-seconds: 1200
- name: Install dependencies
run: pnpm install && node ./setup.js
- name: Build with sst
run: |
npx sst telemetry disable
pnpm run build:packages && pnpm run build --stage dev