Skip to content

Commit 4911201

Browse files
committed
Bump version to v0.1.0-beta
1 parent d56d9a2 commit 4911201

3 files changed

Lines changed: 55 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 21.x
19+
20+
- run: npm ci
21+
22+
- name: Determine version from tag
23+
id: version
24+
run: |
25+
TAG="${GITHUB_REF_NAME}"
26+
VERSION="${TAG#v}"
27+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
28+
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
29+
if [[ "$VERSION" == *-* ]]; then
30+
echo "prerelease=true" >> "$GITHUB_OUTPUT"
31+
else
32+
echo "prerelease=false" >> "$GITHUB_OUTPUT"
33+
fi
34+
35+
- name: Update package.json version
36+
run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version
37+
38+
- name: Package extension
39+
run: |
40+
npm install -g @vscode/vsce
41+
if [ "${{ steps.version.outputs.prerelease }}" = "true" ]; then
42+
vsce package --pre-release --out "vscode-supercollider-${{ steps.version.outputs.tag }}.vsix"
43+
else
44+
vsce package --out "vscode-supercollider-${{ steps.version.outputs.tag }}.vsix"
45+
fi
46+
47+
- name: Create GitHub Release
48+
uses: softprops/action-gh-release@v2
49+
with:
50+
files: '*.vsix'
51+
prerelease: ${{ steps.version.outputs.prerelease == 'true' }}
52+
generate_release_notes: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-supercollider",
33
"displayName": "vscode-supercollider",
44
"description": "Language Server Client for SuperCollider / sclang",
5-
"version": "0.0.3",
5+
"version": "0.1.0-beta",
66
"publisher": "ScottCarver",
77
"homepage": "https://github.com/scztt/vscode-supercollider/blob/master/README.md",
88
"license": "MIT",

src/mcp/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class SuperColliderMcpServer {
7979
constructor() {
8080
this.server = new FastMCP({
8181
name: 'SuperCollider',
82-
version: '0.1.0',
82+
version: '0.1.0-beta',
8383
});
8484

8585
this.registerTools();
@@ -584,6 +584,6 @@ export class SuperColliderMcpServer {
584584
dispose() {
585585
this.outputDisposable?.dispose();
586586
this.outputDisposable = null;
587-
this.server?.stop().catch(() => {});
587+
this.server?.stop().catch(() => { });
588588
}
589589
}

0 commit comments

Comments
 (0)