Skip to content

Commit b69b942

Browse files
Update buildAngular.yml
1 parent 0212f12 commit b69b942

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/buildAngular.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@ jobs:
1212
steps:
1313
- name: Checkout Repository
1414
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 1 # Shallow clone
17+
18+
- name: Increase Git Buffer Size
19+
run: git config --global http.postBuffer 524288000 # 500 MB
1520

1621
- name: Set up Node.js
1722
uses: actions/setup-node@v4
1823
with:
19-
node-version: '18.x' # Ensure the version matches your local environment
24+
node-version: '18.x'
25+
26+
- name: Cache Node.js Modules
27+
uses: actions/cache@v3
28+
with:
29+
path: ~/.npm
30+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-node-
2033
2134
- name: Install Dependencies
2235
run: npm install --legacy-peer-deps
@@ -29,9 +42,3 @@ jobs:
2942
with:
3043
name: dist
3144
path: dist
32-
33-
- name: Clean up Cache
34-
run: npm cache clean --force
35-
36-
- name: List Files in dist
37-
run: ls -la dist # Verify the contents of the dist directory

0 commit comments

Comments
 (0)