Skip to content

Commit 0895462

Browse files
committed
Add CI release packaging
1 parent 1efd188 commit 0895462

3 files changed

Lines changed: 64 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*
9+
pull_request:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
build:
16+
name: Type-check, build, and package
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: npm
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Type-check and build
33+
run: npm run ci
34+
35+
- name: Package VSIX
36+
run: npm run package -- --out vs-code-check-${{ github.ref_name }}.vsix
37+
38+
- name: Upload VSIX artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: vs-code-check-vsix
42+
path: vs-code-check-${{ github.ref_name }}.vsix
43+
44+
- name: Publish GitHub Release
45+
if: startsWith(github.ref, 'refs/tags/v')
46+
uses: softprops/action-gh-release@v2
47+
with:
48+
name: VS Code Check ${{ github.ref_name }}
49+
body_path: .github/release-notes/v1.1.0.md
50+
files: vs-code-check-${{ github.ref_name }}.vsix

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
node_modules/
22
dist/
33
*.vsix
4+
.vscode/
5+
.claude/
6+
.agents/
7+
.codex/
8+
.sisyphus/
9+
*.log
10+
.env
11+
.env.*

.vscodeignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
.vscode/**
2+
.github/**
3+
.claude/**
4+
.agents/**
5+
.codex/**
6+
.sisyphus/**
27
node_modules/**
38
src/**
49
.gitignore
510
.git/**
611
esbuild.ts
712
tsconfig.json
13+
package-lock.json
814
*.vsix
915
icon.svg
1016
**/*.ts

0 commit comments

Comments
 (0)