Skip to content

Commit 11e1405

Browse files
committed
ci: Fix the vscode-extension version detection
1 parent a810829 commit 11e1405

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.github/release-please-config.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"release-type": "simple",
66
"bump-minor-pre-major": true,
77
"include-v-in-tag": true
8-
},
9-
"vscode-extension": {
10-
"bump-minor-pre-major": true,
11-
"include-v-in-tag": true
128
}
139
}
1410
}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: npm ci
4545
working-directory: vscode-extension
4646
- name: Publish VSCode extension
47-
run: npm run publish
47+
run: npm run publish -- $(cat ../version.txt)
4848
working-directory: vscode-extension
4949
env:
5050
VSCE_PAT: ${{ secrets.VSCE_PAT }}

vscode-extension/package-lock.json

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

vscode-extension/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://www.schemastore.org/package.json",
33
"name": "gdshader-language-server",
4-
"version": "0.3.0",
4+
"version": "0.0.0",
55
"description": "Language support for Godot's .gdshader files",
66
"author": "armsnyder",
77
"main": "./src/extension.js",
@@ -13,7 +13,7 @@
1313
"format:check": "prettier --check .",
1414
"test": "vscode-test",
1515
"typecheck": "tsc",
16-
"publish": "cp ../CHANGELOG.md . && cp ../cosign.pub . && vsce publish"
16+
"publish": "cp ../cosign.pub . && vsce publish --changelog-path ../CHANGELOG.md"
1717
},
1818
"devDependencies": {
1919
"@eslint/js": "^9.30.0",
@@ -29,6 +29,13 @@
2929
"prettier": "^3.6.2",
3030
"vscode-languageclient": "^9.0.1"
3131
},
32+
"files": [
33+
"src",
34+
"cosign.pub",
35+
"icon.png",
36+
"language-configuration.json",
37+
"README.md"
38+
],
3239
"publisher": "armsnyder",
3340
"displayName": "GDShader",
3441
"icon": "icon.png",

0 commit comments

Comments
 (0)