Skip to content

Commit

Permalink
Move to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Feb 14, 2024
1 parent 3c28e0a commit d62026c
Show file tree
Hide file tree
Showing 3 changed files with 11,219 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/sst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,25 @@ jobs:
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Installing dependencies
run: |
bun install
pnpm install
- name: Run tests
run: |
bun run test
pnpm test
- name: Run build
run: |
bun run build
pnpm build
DeployApp:
runs-on: ubuntu-latest
Expand All @@ -35,15 +44,24 @@ jobs:
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.ROLE_TO_ASSUME }}
aws-region: ap-southeast-1
- name: Installing dependencies
run: |
bun install
pnpm install
- name: Deploy app
run: |
bun sst deploy --stage prod
pnpm sst deploy --stage prod
Binary file removed bun.lockb
Binary file not shown.
Loading

0 comments on commit d62026c

Please sign in to comment.