Skip to content

Commit 47ff069

Browse files
authored
Merge pull request #55 from maifeeulasad/enhance-pnpm
use pnpm
2 parents 1d48e92 + 65b8863 commit 47ff069

File tree

9 files changed

+9634
-8744
lines changed

9 files changed

+9634
-8744
lines changed

.github/workflows/lighthouse.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17+
- name: 'Installing Build Deps'
18+
run: npm i -g pnpm
19+
1720
- name: 'Installing deps'
1821
run: |
19-
yarn
22+
pnpm i
2023
npm i -g @lhci/[email protected] serve
2124
2225
- name: 'Build Prodcution'
23-
run: yarn build
26+
run: pnpm build
2427

2528
- name: 'Serve Prodcution Server'
2629
run: serve -s build &

.github/workflows/mr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
with:
2121
node-version: ${{ matrix.node-version }}
2222
- name: 'Installing deps'
23-
run: yarn
23+
run: npm i -g pnpm && pnpm i
2424
- name: 'Predeploy' # no need to add test and everything seperately, we ensure everything with predeploy
25-
run: yarn predeploy
25+
run: pnpm predeploy

.github/workflows/pipeline.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ jobs:
1919
uses: actions/setup-node@v1
2020
with:
2121
node-version: ${{ matrix.node-version }}
22+
23+
- name: 'Installing build deps'
24+
run: npm i -g pnpm
2225
- name: 'Installing deps'
23-
run: yarn
26+
run: pnpm i
2427
# - name: 'Test'
25-
# run: yarn test
28+
# run: pnpm test
2629
- name: 'Build'
27-
run: yarn build #--if-present
30+
run: pnpm build #--if-present
2831
- name: 'Deploy'
2932
uses: peaceiris/actions-gh-pages@v4
3033
with:

.github/workflows/snap.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313

14+
- name: 'Installing build deps'
15+
run: npm i -g pnpm
16+
1417
- name: 'Installing deps'
15-
run: yarn && npm i -g serve
18+
run: pnpm i && npm i -g serve
1619

1720
- name: 'Build Prodcution'
18-
run: yarn build
21+
run: pnpm build
1922

2023
- name: 'Serve Prodcution Server'
2124
run: serve -s build -p 5173 &

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM node:18.18.2-alpine3.17
22

33
COPY . .
44

5-
RUN yarn
5+
RUN pnpm i
66

7-
RUN yarn build
7+
RUN pnpm build
88

99
RUN npm i -g serve
1010

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"start": "vite",
6060
"build": "rm -rf build && tsc && vite build",
6161
"serve": "vite preview",
62-
"predeploy": "yarn lint && yarn build",
62+
"predeploy": "pnpm lint && pnpm build",
6363
"deploy": "gh-pages -d build",
6464
"test:e2e": "cypress open",
6565
"test:e2e:ci": "cypress run",

0 commit comments

Comments
 (0)