Skip to content

Commit 5af7c5a

Browse files
committed
chore: New release flow (#46)
Release action #42
1 parent fb4cfc7 commit 5af7c5a

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

Diff for: .github/workflows/release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Release version"
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup NodeJS
23+
uses: actions/setup-node@v3
24+
25+
- name: Configure Git
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
29+
30+
- name: Generate Changelog and GH Release
31+
run: |
32+
npx changelogen@latest --release --push -r ${{ inputs.version }}
33+
npx changelogen@latest gh release --token ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Release VS Code Package
36+
env:
37+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
38+
run: |
39+
npx @vscode/vsce@latest publish

Diff for: changelog.config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"templates": {
3+
"commitMessage": "release: `v{{newVersion}}`"
4+
}
5+
}

0 commit comments

Comments
 (0)