Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 022d0a8

Browse files
committed
chore: pnpm-workspace
1 parent e162677 commit 022d0a8

58 files changed

Lines changed: 3493 additions & 4072 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.github/workflows/CD-dev.ymlβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1515
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
1616
with:
17-
context: master/.
17+
file: apps/master/Dockerfile
18+
context: .
1819
tags: premid/api-master
1920
version: dev-${{ github.sha }}-${{ github.run_number }}
2021
secrets:
@@ -26,7 +27,8 @@ jobs:
2627
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2728
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
2829
with:
29-
context: worker/.
30+
file: apps/worker/Dockerfile
31+
context: .
3032
tags: premid/api-worker
3133
version: dev-${{ github.sha }}-${{ github.run_number }}
3234
secrets:

β€Ž.github/workflows/CD.ymlβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ jobs:
99
docker-master:
1010
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
1111
with:
12-
context: master/.
12+
file: apps/master/Dockerfile
13+
context: .
1314
tags: premid/api-master
1415
version: ${{ github.ref_name }}
1516
secrets:
@@ -20,7 +21,8 @@ jobs:
2021
docker-worker:
2122
uses: "Recodive/Workflows/.github/workflows/CD Docker.yml@main"
2223
with:
23-
context: worker/.
24+
file: apps/worker/Dockerfile
25+
context: .
2426
tags: premid/api-worker
2527
version: ${{ github.ref_name }}
2628
secrets:

β€Ž.github/workflows/CI.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
1313
with:
1414
node-version: "lts/*"
1515
cache: "pnpm"
16-
- run: pnpm run init
17-
- run: pnpm build
16+
- run: pnpm i --frozen-lockfile
17+
- run: pnpm -r build

β€Žapps/master/Dockerfileβ€Ž

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM node:lts-alpine as base
2+
3+
WORKDIR /app
4+
5+
RUN corepack enable
6+
7+
FROM base as builder
8+
9+
RUN echo pnpm -v
10+
11+
COPY pnpm-lock.yaml ./
12+
RUN pnpm fetch
13+
14+
COPY . .
15+
RUN pnpm i
16+
RUN pnpm --filter=./apps/master build
17+
RUN pnpm --filter=./apps/master deploy --prod pruned
18+
19+
FROM base
20+
21+
ENV NODE_ENV=production
22+
23+
COPY --from=builder /app/pruned/dist ./
24+
COPY --from=builder /app/pruned/node_modules ./node_modules
25+
26+
CMD ["node", "index.js"]
File renamed without changes.

0 commit comments

Comments
Β (0)