Skip to content

Commit b85c65c

Browse files
committed
ci: add semantic release configuration files
1 parent 19e7ed2 commit b85c65c

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.releaserc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"repositoryUrl": "https://github.com/traunts/Cortex-Command-Community-Project-VSCode-Extension",
6+
"debug": "true",
7+
"plugins": [
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/release-notes-generator",
10+
[
11+
"@semantic-release/changelog",
12+
{
13+
"changelogFile": "CHANGELOG.md"
14+
}
15+
],
16+
[
17+
"@semantic-release/exec",
18+
{
19+
"publishCmd": "npm publish -- ${nextRelease.version}"
20+
}
21+
],
22+
[
23+
"@semantic-release/git",
24+
{
25+
"assets": [
26+
"package.json",
27+
"CHANGELOG.md",
28+
"syntaxes/ccini.tmLanguage.json"
29+
]
30+
}
31+
],
32+
[
33+
"@semantic-release/github",
34+
{
35+
"assets": [
36+
{
37+
"path": "cortex-command-community-project-language-support-${nextRelease.version}.vsix"
38+
}
39+
],
40+
"successComment": false,
41+
"failComment": false,
42+
"failTitle": false,
43+
"releasedLabels": false,
44+
"labels": false
45+
}
46+
]
47+
]
48+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"scripts": {
4949
"prepare": "husky install",
5050
"semantic-release": "semantic-release",
51-
"build": "npx js-yaml syntaxes/ccini.tmLanguage.yaml > syntaxes/ccini.tmLanguage.json""publish": ""
51+
"build": "npx js-yaml syntaxes/ccini.tmLanguage.yaml > syntaxes/ccini.tmLanguage.json",
52+
"publish": "vsce publish"
5253
}
5354
}

0 commit comments

Comments
 (0)