Skip to content

Commit cb52a13

Browse files
fix: fix caching in ci.yml
1 parent 3acb7a4 commit cb52a13

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ jobs:
7878
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
7979

8080
- name: Cache dist
81-
uses: actions/cache/save@v4
81+
uses: actions/cache@v4
8282
with:
8383
path: 'libs/*/dist'
8484
key: ${{ runner.os }}-dist-${{ hashFiles('libs/*/dist') }}
85+
restore-keys: |
86+
${{ runner.os }}-dist-
8587
8688
- name: Run Build
8789
run: npm run build

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
lerna run lint
2-
lerna run test
32
lerna run build
3+
lerna run test

Dockerfile-mono

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ COPY --from=install-stage /app /app
1010
WORKDIR /app
1111

1212
RUN npm run lint && \
13+
npm run build && \
1314
npm run test
1415

15-
FROM node:20-alpine as build-stage
16-
COPY --from=install-stage /app /app
17-
WORKDIR /app
18-
19-
RUN npm run build
20-
2116
FROM node:20-alpine as run-stage
2217
COPY --from=build-stage /app /app
2318
WORKDIR /app

0 commit comments

Comments
 (0)