Skip to content

Commit 3210db7

Browse files
author
Peng Ren
committed
Add release pipeline
1 parent 5a5b8a7 commit 3210db7

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Compile
32+
run: npm run compile
33+
34+
- name: Package extension
35+
run: npx @vscode/vsce package --no-yarn
36+
37+
- name: Publish to VS Marketplace
38+
run: npx @vscode/vsce publish --no-yarn
39+
env:
40+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
41+
42+
- name: Upload VSIX to GitHub Release
43+
uses: softprops/action-gh-release@v2
44+
with:
45+
files: "*.vsix"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "SQL4ALL",
44
"publisher": "sql4all",
55
"description": "Query SQL/NoSQL Database using SQL syntax — powered by SQLAlchemy",
6-
"version": "0.0.1",
6+
"version": "0.3.0",
77
"license": "MIT",
88
"engines": {
99
"vscode": "^1.110.0"

0 commit comments

Comments
 (0)