Skip to content

Commit 4a13696

Browse files
authored
Merge pull request #86 from VSC-NeuroPilot/chore/pnpm
chore: swap to pnpm
2 parents fa9c277 + 37a6b49 commit 4a13696

8 files changed

Lines changed: 4864 additions & 8766 deletions

File tree

.github/workflows/builds.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,26 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
ref: ${{ github.sha }}
38+
39+
- name: Setup pnpm
40+
uses: pnpm/action-setup@v4
41+
with:
42+
version: 10.14.0
3843

3944
- name: Setup Node.js
4045
uses: actions/setup-node@v4.4.0
4146
with:
4247
node-version: 22.x.x
43-
cache: 'npm'
44-
cache-dependency-path: './package-lock.json'
45-
46-
- name: Cache node_modules
47-
uses: actions/cache@v4
48-
with:
49-
path: node_modules/
50-
key: neuropilot-build-${{ github.repository }}
51-
48+
cache: 'pnpm'
49+
cache-dependency-path: './pnpm-lock.yaml'
50+
5251
- name: Install dependencies
53-
run: npm install
52+
run: pnpm install --frozen-lockfile
5453

5554
- name: Package extension
5655
env:
5756
NODE_ENV: ${{ inputs.prod || '0' }}
58-
run: npx @vscode/vsce package --allow-star-activation
57+
run: pnpx @vscode/vsce package --allow-star-activation --no-dependencies
5958

6059
- name: Upload builds
6160
uses: actions/upload-artifact@v4

.github/workflows/linter.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 10.14.0
18+
1419
- name: Setup Node.js
1520
uses: actions/setup-node@v4
1621
with:
1722
node-version: 22.14.0
18-
cache: 'npm'
19-
cache-dependency-path: './package-lock.json'
23+
cache: 'pnpm'
24+
cache-dependency-path: './pnpm-lock.yaml'
2025

2126
- name: clean-install deps
22-
run: npm ci
27+
run: pnpm install --frozen-lockfile
2328

2429
- name: lint check
25-
run: npx eslint src/
30+
run: pnpx eslint src/

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,20 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131

32+
- name: Setup pnpm
33+
uses: pnpm/action-setup@v4
34+
with:
35+
version: 10.14.0
36+
3237
- name: Setup Node.js
3338
uses: actions/setup-node@v4
3439
with:
3540
node-version: 'latest'
41+
cache: 'pnpm'
42+
cache-dependency-path: './pnpm-lock.yaml'
3643

3744
- name: Install deps
38-
run: npm install
45+
run: pnpm install --frozen-lockfile
3946

4047
- name: Configure Git
4148
run: |
@@ -45,7 +52,7 @@ jobs:
4552
- name: Publish extension
4653
env:
4754
NODE_ENV: 1
48-
run: npx @vscode/vsce publish ${{inputs.version}} -p ${{secrets.MARKETPLACE_TOKEN}} --allow-star-activation
55+
run: pnpx @vscode/vsce publish ${{inputs.version}} -p ${{secrets.MARKETPLACE_TOKEN}} --allow-star-activation --no-dependencies
4956

5057
- name: Commit and push version change
5158
run: |

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
npm run types
2-
npx eslint
1+
pnpm types
2+
pnpx eslint

0 commit comments

Comments
 (0)