Skip to content

Commit d4f2e24

Browse files
committed
ci: update
1 parent 149aba0 commit d4f2e24

File tree

5 files changed

+700
-1921
lines changed

5 files changed

+700
-1921
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,29 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424

25+
- name: Install pnpm
26+
uses: pnpm/action-setup@v4
27+
2528
- name: Install Node.js
2629
uses: actions/setup-node@v4
2730
with:
2831
node-version: 18.x
32+
registry-url: 'https://registry.npmjs.org'
33+
cache: 'pnpm'
2934

30-
- name: Run npm install
31-
run: npm install
35+
- name: Run pnpm install
36+
run: pnpm install
3237

3338
- name: Run pretest
34-
run: xvfb-run -a npm run pretest
39+
run: xvfb-run -a pnpm run pretest
3540
if: runner.os == 'Linux'
3641

3742
- name: Run pretest
38-
run: npm run pretest
43+
run: pnpm run pretest
3944
if: runner.os != 'Linux'
4045

4146
- name: Run vsce package
42-
run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
47+
run: mkdir -p out/vsix/ && pnpm package -o out/vsix/
4348

4449
- name: Upload artifact
4550
if: runner.os == 'Linux'

.github/workflows/deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,31 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414

15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
1518
- name: Install Node.js
1619
uses: actions/setup-node@v4
1720
with:
1821
node-version: 18.x
22+
registry-url: 'https://registry.npmjs.org'
23+
cache: 'pnpm'
1924

20-
- name: Run npm install
21-
run: npm install
25+
- name: Run pnpm install
26+
run: pnpm install
2227

2328
- name: Run vsce package
24-
run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
29+
run: mkdir -p out/vsix/ && pnpm package -o out/vsix/
2530

2631
- name: Create Github Release
2732
uses: softprops/action-gh-release@v2
2833
with:
2934
files: out/vsix/*.vsix
3035

3136
- name: Publish to VS Code Marketplace
32-
run: npm run deploy
37+
run: pnpm run deploy
3338
env:
3439
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3540

3641
- name: Publish to Open VSX
37-
run: npm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}
42+
run: pnpm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}

.vscodeignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github/**
12
.vscode/**
23
.vscode-test/**
34
src/**
@@ -10,4 +11,6 @@ vsc-extension-quickstart.md
1011
**/*.map
1112
**/*.ts
1213
.history
13-
static/*.dot
14+
static/*.dot
15+
pnpm-lock.yaml
16+
eslint.config.mjs

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"engines": {
88
"vscode": "^1.65.0"
99
},
10+
"packageManager": "[email protected]",
1011
"categories": [
1112
"Visualization"
1213
],
@@ -61,6 +62,7 @@
6162
"compile": "tsc -p ./",
6263
"watch": "tsc -watch -p ./",
6364
"pretest": "pnpm run compile && pnpm run lint",
65+
"package": "vsce package --no-dependencies",
6466
"lint": "eslint src",
6567
"format": "prettier --write .",
6668
"test": "echo \"Test is't yet implemented\" && exit 0",
@@ -72,7 +74,7 @@
7274
"@types/glob": "^8.1.0",
7375
"@types/mocha": "^10.0.10",
7476
"@types/node": "~22.9.3",
75-
"@types/vscode": "^1.95.0",
77+
"@types/vscode": "1.65.0",
7678
"@vscode/test-electron": "^2.4.1",
7779
"@vscode/vsce": "^3.2.1",
7880
"eslint": "^9.15.0",

0 commit comments

Comments
 (0)