Refactoring
This commit is contained in:
11
.github/workflows/api.yaml
vendored
11
.github/workflows/api.yaml
vendored
@@ -20,11 +20,6 @@ jobs:
|
||||
sparse-checkout: |
|
||||
api
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: ${{ vars.PNPM_VERSION }}
|
||||
|
||||
- name: Install Nest CLI
|
||||
run: |
|
||||
npm install -g @nestjs/cli
|
||||
@@ -35,12 +30,14 @@ jobs:
|
||||
node-version: ${{ vars.NODE_VERSION }}
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: api
|
||||
run: |
|
||||
pnpm install --frozen-lockfile
|
||||
npm install --omit=dev
|
||||
|
||||
- name: Build
|
||||
working-directory: api
|
||||
run: |
|
||||
pnpm --filter api build
|
||||
npm run build
|
||||
|
||||
- name: Log into Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
|
||||
10
.github/workflows/app.yaml
vendored
10
.github/workflows/app.yaml
vendored
@@ -19,24 +19,20 @@ jobs:
|
||||
sparse-checkout: |
|
||||
app
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: ${{ vars.PNPM_VERSION }}
|
||||
|
||||
- name: 'Setup Node'
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ vars.NODE_VERSION }}
|
||||
|
||||
- name: Install
|
||||
working-directory: app
|
||||
run: |
|
||||
pnpm install --frozen-lockfile
|
||||
npm install --omit=dev
|
||||
|
||||
- name: Build
|
||||
working-directory: app
|
||||
run: |
|
||||
pnpm --filter app build
|
||||
npm run build
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
Reference in New Issue
Block a user