Skip to content

Commit 4278b38

Browse files
committed
Use pnpm as package manager
1 parent 272caa4 commit 4278b38

13 files changed

Lines changed: 4988 additions & 21934 deletions

File tree

.github/workflows/build-workflow.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ jobs:
1414
working-directory: packages/extension
1515
steps:
1616
- uses: actions/checkout@v5
17-
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v4
1819
- name: "Setup Node.js"
1920
uses: actions/setup-node@v6
2021
with:
2122
node-version: 20
22-
2323
- name: "Install dependencies"
24-
run: npm ci
25-
24+
run: pnpm install
2625
- name: "Create Artifact"
2726
run: npx @vscode/vsce package
28-
2927
- name: "Resolve build version"
3028
run: echo "BUILD_VERSION=$GITHUB_SHA" >> $GITHUB_ENV
31-
3229
- name: "Set artifact name"
3330
run: echo "ARTIFACT_NAME=$(echo vscode-septic-${{ env.BUILD_VERSION }}.vsix)" >> $GITHUB_ENV
34-
3531
- name: "Upload artifact"
3632
uses: actions/upload-artifact@v5
3733
with:

.github/workflows/codequality.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,25 @@ on:
55

66
jobs:
77
code_quality:
8-
name: "🛠️ Build & 🧪 Test Extension"
8+
name: "🧪 Lint & Test Packages"
99
runs-on: ubuntu-latest
10-
defaults:
11-
run:
12-
working-directory: packages/extension
1310
steps:
1411
- uses: actions/checkout@v5
15-
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v4
1614
- name: Setup Node.js
1715
uses: actions/setup-node@v6
1816
with:
1917
node-version: 22
20-
2118
- name: 📦 Install dependencies
22-
run: npm ci
23-
19+
run: pnpm install
20+
- name: 🛠️ Build Packages
21+
run: pnpm -r build
22+
- name: 🧹 Lint Packages
23+
run: pnpm -r lint
2424
- name: 🧪 Run Unittests
25-
run: xvfb-run --auto-servernum npm run test
26-
25+
run: xvfb-run --auto-servernum pnpm -r test
2726
- name: 🧪 Run Integrationtests
28-
run: xvfb-run --auto-servernum npm run integration-test
29-
30-
- name: 🧪 Test Building of Artifact
31-
run: npx @vscode/vsce package
27+
run: xvfb-run --auto-servernum pnpm -r integration-test
28+
- name: 🧪 Test Building of Extension
29+
run: cd packages/extension && npx @vscode/vsce package

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"group": "build",
4343
"problemMatcher": [],
4444
"label": "npm: compile-tests - packages/extension",
45-
"detail": "tsc -p ./client && tsc -p ./server && npm run copy-files"
45+
"detail": "tsc -p ./client && tsc -p ./server && pnpm copy-files"
4646
}
4747
]
4848
}

0 commit comments

Comments
 (0)