File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 12
12
id-token : write # Required for OIDC
13
13
contents : read # Required to fetch repo contents
14
14
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
+
15
26
# Step 1: Checkout the code
16
27
- name : Checkout code
17
28
uses : actions/checkout@v4
28
39
- name : Install dependencies
29
40
run : npm ci --include=dev
30
41
42
+ - name : Echo before build
43
+ run : echo "Starting build step..."
44
+
31
45
# Step 4: Build the project
32
46
- name : Build package
33
- run : npm run build
47
+ run : NODE_OPTIONS="--max_old_space_size=4096" npm run build
34
48
35
49
# Step 5: Configure AWS credentials via OIDC
36
50
- name : Configure AWS credentials
You can’t perform that action at this time.
0 commit comments