Skip to content

Commit 92e3846

Browse files
Add project configuration files and CI setup for deployment
1 parent d983cc4 commit 92e3846

File tree

5 files changed

+1391
-21
lines changed

5 files changed

+1391
-21
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
release:
6+
types:
7+
- created
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os: [macos-latest, ubuntu-latest, windows-latest]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Install Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 23.x
22+
- run: npm -g install pnpm@latest
23+
- run: pnpm install
24+
- run: xvfb-run -a pnpm test
25+
if: runner.os == 'Linux'
26+
- run: pnpm test
27+
if: runner.os != 'Linux'
28+
- name: Publish
29+
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
30+
run: npm run deploy
31+
env:
32+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
33+

.idea/dictionaries/project.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959
"watch-tests": "tsc -p . -w --outDir out",
6060
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
6161
"lint": "eslint src",
62-
"test": "vscode-test"
62+
"test": "vscode-test",
63+
"deploy": "vsce publish --yarn"
6364
},
6465
"devDependencies": {
6566
"@types/mocha": "^10.0.10",
@@ -69,6 +70,7 @@
6970
"@typescript-eslint/parser": "^8.28.0",
7071
"@vscode/test-cli": "^0.0.10",
7172
"@vscode/test-electron": "^2.4.1",
73+
"@vscode/vsce": "^3.3.2",
7274
"eslint": "^9.23.0",
7375
"ts-loader": "^9.5.2",
7476
"typescript": "^5.8.2",

0 commit comments

Comments
 (0)