Skip to content

Commit cf17585

Browse files
committed
Configuration update for aws
1 parent ff7b0d6 commit cf17585

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/aws-publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ jobs:
1212
id-token: write # Required for OIDC
1313
contents: read # Required to fetch repo contents
1414
steps:
15+
# Step 0: Cache node_modules and Vite cache
16+
- name: Cache node_modules and Vite cache
17+
uses: actions/cache@v4
18+
with:
19+
path: |
20+
node_modules
21+
**/.vite
22+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-node-
25+
1526
# Step 1: Checkout the code
1627
- name: Checkout code
1728
uses: actions/checkout@v4
@@ -28,9 +39,12 @@ jobs:
2839
- name: Install dependencies
2940
run: npm ci --include=dev
3041

42+
- name: Echo before build
43+
run: echo "Starting build step..."
44+
3145
# Step 4: Build the project
3246
- name: Build package
33-
run: npm run build
47+
run: NODE_OPTIONS="--max_old_space_size=4096" npm run build
3448

3549
# Step 5: Configure AWS credentials via OIDC
3650
- name: Configure AWS credentials

0 commit comments

Comments
 (0)