Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5af7c5a

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

File tree

Expand file treeCollapse file tree

2 files changed

+44
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+44
-0
lines changed

‎.github/workflows/release.yml

Copy file name to clipboard
+39Lines changed: 39 additions & 0 deletions
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

‎changelog.config.json

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.