Skip to content

Commit f56b685

Browse files
authored
Merge pull request #55 from team-washer/fix/config
Fix cd
2 parents 977be46 + a7532fd commit f56b685

1 file changed

Lines changed: 35 additions & 40 deletions

File tree

‎.github/workflows/cd.yml‎

Lines changed: 35 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,42 @@ on:
77
jobs:
88
build-and-deploy:
99
runs-on: self-hosted
10-
1110
strategy:
1211
matrix:
1312
node-version: [20.x]
14-
15-
env:
16-
PNPM_HOME: /root/.local/share/pnpm
17-
PATH: /root/.local/share/pnpm:$PATH
18-
13+
1914
steps:
20-
- uses: actions/checkout@v4
21-
22-
- name: Setup pnpm
23-
uses: pnpm/action-setup@v2
24-
with:
25-
version: latest
26-
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
cache: 'pnpm'
32-
33-
- name: Install dependencies
34-
run: pnpm install --frozen-lockfile
35-
36-
- name: Lint
37-
run: pnpm run lint
38-
continue-on-error: true
39-
40-
- name: Type check
41-
run: pnpm exec tsc --noEmit
42-
continue-on-error: true
43-
44-
- name: Copy .env file
45-
run: cp /root/.env .env
46-
47-
- name: Build app
48-
run: pnpm run build
49-
50-
- name: Restart app with PM2
51-
run: |
52-
pm2 startOrRestart ecosystem.config.js --env production
53-
pm2 save
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v2
19+
with:
20+
version: latest
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Lint
32+
run: pnpm run lint
33+
continue-on-error: true
34+
35+
- name: Type check
36+
run: pnpm exec tsc --noEmit
37+
continue-on-error: true
38+
39+
- name: Copy .env file
40+
run: cp /root/.env .env
41+
42+
- name: Build app
43+
run: pnpm run build
44+
45+
- name: Restart app with PM2
46+
run: |
47+
pm2 startOrRestart ecosystem.config.js --env production
48+
pm2 save

0 commit comments

Comments
 (0)