Skip to content

Commit 352cbed

Browse files
authored
Merge pull request #1 from traunts/development
Establish CD pipeline and test extension publishing
2 parents a5a5051 + ec23bf9 commit 352cbed

File tree

11 files changed

+772
-3
lines changed

11 files changed

+772
-3
lines changed

,github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Release Extension
5+
6+
on:
7+
push:
8+
branches: ["main"]
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
cache: "npm"
21+
22+
- name: "Install dependencies"
23+
run: npm ci
24+
25+
- name: "Build (ensure yaml is transpiled to json)"
26+
run: npm run build
27+
28+
- name: "Semantic Release"
29+
run: npx semantic-release --dry-run
30+
env:
31+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
32+
VSCE_PAT: ${{ secrets.AZUREDEVOPS_PAT }}

.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+
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"editor.formatOnSave": true,
33
"python.formatting.provider": "black",
4+
"yaml.schemas": {
5+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
6+
"https://json.schemastore.org/github-workflow.json": "file:///d%3A/stuart/Documents/Cortex%20Command%20Community%20Project/Cortex-Command-Community-Project-VSCode-Extension/%2Cgithub/workflows/release.yaml"
7+
},
48
}

.vscodeignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22
.vscode-test/**
33
.gitignore
44
vsc-extension-quickstart.md
5+
tests/**
6+
docs/**
7+
.husky/**
8+
.github/**
9+
.commitlintrc.json
10+
notes.md
11+
.releaserc.json

0 commit comments

Comments
 (0)