Skip to content

Commit b44b32e

Browse files
committed
chore(pnpm): swap npm out for pnpm
1 parent dcf2fe1 commit b44b32e

File tree

6 files changed

+213
-14778
lines changed

6 files changed

+213
-14778
lines changed

.github/workflows/ci-cd-20.18.3.yml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,69 @@ env:
1010
NODE_VERSION: "20.18.3"
1111

1212
jobs:
13+
pnpm:
14+
name: install dependencies (pnpm)
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Git checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: "10"
24+
25+
- name: Use Node.js ${{ env.NODE_VERSION }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
cache: 'pnpm'
30+
31+
- name: Install node dependencies
32+
run: pnpm i
33+
1334
es-lint:
35+
name: es-lint
36+
needs: [pnpm]
1437
runs-on: ubuntu-latest
1538
steps:
1639
- name: Git checkout
1740
uses: actions/checkout@v4
1841

42+
- name: Setup pnpm
43+
uses: pnpm/action-setup@v2
44+
1945
- name: Use Node.js ${{ env.NODE_VERSION }}
2046
uses: actions/setup-node@v4
2147
with:
2248
node-version: ${{ env.NODE_VERSION }}
49+
cache: 'pnpm'
2350

2451
- name: Install node dependencies
25-
run: npm i
52+
run: pnpm i
2653

27-
- name: es-lint
28-
run: npm run lint
54+
- name: Check es-lint
55+
run: pnpm lint
2956

3057
prettier:
58+
name: prettier
59+
needs: [pnpm]
3160
runs-on: ubuntu-latest
3261
steps:
3362
- name: Git checkout
3463
uses: actions/checkout@v4
3564

65+
- name: Setup pnpm
66+
uses: pnpm/action-setup@v2
67+
3668
- name: Use Node.js ${{ env.NODE_VERSION }}
3769
uses: actions/setup-node@v4
3870
with:
3971
node-version: ${{ env.NODE_VERSION }}
72+
cache: 'pnpm'
4073

4174
- name: Install node dependencies
42-
run: npm i
75+
run: pnpm i
4376

44-
- name: Prettier
45-
run: npm run prettier
77+
- name: Check prettier
78+
run: pnpm prettier

.github/workflows/ci-cd-latest.yml

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,69 @@ env:
1010
NODE_VERSION: "latest"
1111

1212
jobs:
13+
pnpm:
14+
name: install dependencies (pnpm)
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Git checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: "latest"
24+
25+
- name: Use Node.js ${{ env.NODE_VERSION }}
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ env.NODE_VERSION }}
29+
cache: 'pnpm'
30+
31+
- name: Install node dependencies
32+
run: pnpm i
33+
1334
es-lint:
35+
name: es-lint
36+
needs: [pnpm]
1437
runs-on: ubuntu-latest
1538
steps:
1639
- name: Git checkout
1740
uses: actions/checkout@v4
1841

42+
- name: Setup pnpm
43+
uses: pnpm/action-setup@v2
44+
1945
- name: Use Node.js ${{ env.NODE_VERSION }}
2046
uses: actions/setup-node@v4
2147
with:
2248
node-version: ${{ env.NODE_VERSION }}
49+
cache: 'pnpm'
2350

2451
- name: Install node dependencies
25-
run: npm i
52+
run: pnpm i
2653

27-
- name: es-lint
28-
run: npm run lint
54+
- name: Check es-lint
55+
run: pnpm lint
2956

3057
prettier:
58+
name: prettier
59+
needs: [pnpm]
3160
runs-on: ubuntu-latest
3261
steps:
3362
- name: Git checkout
3463
uses: actions/checkout@v4
3564

65+
- name: Setup pnpm
66+
uses: pnpm/action-setup@v2
67+
3668
- name: Use Node.js ${{ env.NODE_VERSION }}
3769
uses: actions/setup-node@v4
3870
with:
3971
node-version: ${{ env.NODE_VERSION }}
72+
cache: 'pnpm'
4073

4174
- name: Install node dependencies
42-
run: npm i
75+
run: pnpm i
4376

44-
- name: Prettier
45-
run: npm run prettier
77+
- name: Check prettier
78+
run: pnpm prettier

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ that went into it. Thank you!
2424

2525
- Git
2626
- NodeJS >= 20.18.3
27+
- pnpm >= 10.0.0
2728
- A Minecraft account
2829

2930
### Setup Guide for NodeJS
@@ -32,9 +33,13 @@ To get started, clone down the repository using:
3233

3334
git clone https://github.com/DuckySoLucky/hypixel-discord-chat-bridge.git
3435

35-
Next go into the `hypixel-discord-chat-bridge` folder and install all the dependencies using NPM.
36+
If you don't already have pnpm installed, install it using:
3637

37-
npm install
38+
npm install pnpm --gbloal
39+
40+
Next go into the `hypixel-discord-chat-bridge` folder and install all the dependencies using PNPM.
41+
42+
pnpm install
3843

3944
While the dependencies are being installed you can edit the configuration file. The configuration file is called `config.example.json`. It is pretty self explanatory, but
4045
if you need help with it, you can check out the [Configuration](#configuration) section. Once you are done editing, save it as another file by the name of `config.json`.

0 commit comments

Comments
 (0)