Skip to content

Commit 8eb2b33

Browse files
authored
Tag and create github release in publish action (#1691)
* update version for release * update publish action to tag and create github release * remove release from release title
1 parent 7197b52 commit 8eb2b33

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,36 @@ jobs:
88
timeout-minutes: 20
99
steps:
1010
- name: Checkout
11+
id: checkout
1112
uses: actions/checkout@v3
1213
with:
1314
fetch-depth: 0
15+
- run: echo "::set-output name=commit::$(git rev-parse HEAD)"
1416

1517
- name: Setup Node.js environment
1618
uses: actions/setup-node@v3
1719
with:
1820
node-version: '14'
1921
cache: 'yarn'
20-
2122
- run: yarn run install-frozen-lockfile
2223
- run: yarn build
24+
2325
- name: Publish to Visual Studio Marketplace
2426
uses: HaaLeo/publish-vscode-extension@v1
2527
with:
2628
extensionFile: './extension/dvc.vsix'
2729
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
2830
registryUrl: https://marketplace.visualstudio.com
31+
32+
- name: Get Most Recent Changelog Entry
33+
id: changelog_reader
34+
uses: mindsers/changelog-reader-action@v2
35+
36+
- name: Create Github Release
37+
uses: ncipollo/release-action@v1
38+
with:
39+
body: ${{ steps.changelog_reader.outputs.changes }}
40+
commit: ${{ steps.checkout.outputs.commit }}
41+
name: ${{ steps.changelog_reader.outputs.version }}
42+
tag: ${{ steps.changelog_reader.outputs.version }}
43+
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3-
## 0.2.13 2022-05-10
3+
All notable changes to this project will be documented in this file.
44

5-
- Placeholder Release
5+
## [0.2.14] - 2022-05-12
6+
7+
### Initial Release

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"extensionDependencies": [
1010
"vscode.git"
1111
],
12-
"version": "0.2.13",
12+
"version": "0.2.14",
1313
"license": "Apache-2.0",
1414
"readme": "./README.md",
1515
"repository": {

0 commit comments

Comments
 (0)