Skip to content

Commit 416c203

Browse files
Merge pull request #94 from HichemTab-tech/migrate-to-pnpm
Migrate to pnpm
2 parents 2e1e683 + 4cec6b0 commit 416c203

5 files changed

Lines changed: 2156 additions & 3356 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Please list the changes introduced by this PR. You can format them as bullet poi
3838

3939
## 📦 Dependency Updates
4040

41-
- [ ] If this PR updates or adds a dependency, I have run `npm install` and verified that the project builds and works properly.
41+
- [ ] If this PR updates or adds a dependency, I have run `pnpm install` and verified that the project builds and works properly.
4242
- [ ] If applicable, I have updated the `dependabot.yml` schedule for dependency updates.
4343

4444
---

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: '22.x'
1919
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Install pnpm
22+
run: npm install -g pnpm
23+
2024
- name: Install dependencies
21-
run: npm ci
25+
run: pnpm install
2226

2327
- name: Build project
24-
run: npm run build
28+
run: pnpm run build
2529

2630
- name: Publish to npm
27-
run: npm publish --access public
31+
run: pnpm publish --access public --no-git-checks
2832
env:
2933
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ jobs:
2323
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
cache: 'npm'
26+
27+
- name: Install pnpm
28+
run: npm install -g pnpm
2729

2830
- name: Install dependencies
29-
run: npm ci
31+
run: pnpm install
3032

3133
- name: Run Vitest tests
3234
run: npm run test

0 commit comments

Comments
 (0)