Skip to content

Commit f0d004c

Browse files
author
Alvin Januar
committed
chore: change yarn to bun for build
1 parent b97a629 commit f0d004c

File tree

3 files changed

+8
-3539
lines changed

3 files changed

+8
-3539
lines changed

.github/workflows/terraform.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,16 @@ jobs:
3939
with:
4040
terraform_wrapper: false
4141
# Setup Nodejs
42-
- name: Use Node v16
42+
- name: Use Node v20
4343
uses: actions/setup-node@v1
4444
with:
45-
node-version: 16
45+
node-version: 20
4646

47-
# Install dependencies with yarn
48-
- name: Run install
49-
uses: borales/actions-yarn@v4
50-
with:
51-
cmd: install
52-
53-
# Build for production
54-
- name: Build production bundle
55-
uses: borales/actions-yarn@v4
56-
with:
57-
cmd: build
47+
# Install & Build repo
48+
- name: Use Bun to install and build
49+
uses: oven-sh/setup-bun@v1
50+
- run: bun install
51+
- run: bun run build
5852

5953
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
6054
- name: Terraform Init
@@ -78,4 +72,4 @@ jobs:
7872
run: |
7973
CLOUDFRONT_DISTRIBUTION_ID=$(terraform output -raw cloudfront)
8074
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
81-
75+

bun.lockb

194 KB
Binary file not shown.

0 commit comments

Comments
 (0)