Skip to content

Commit ec23bf9

Browse files
committed
ci: add GitHub Actions release Semantic Release workflow
1 parent b85c65c commit ec23bf9

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
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 }}

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

0 commit comments

Comments
 (0)