Skip to content

Commit 27147de

Browse files
authored
feat: vs code readme images (#3392)
* fix: absolute image path * feat: auto release and bump version
1 parent a9ec330 commit 27147de

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

‎.github/workflows/openvsx-release.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Open VSX Extension Release
22

33
on:
44
push:
5-
tags:
6-
- "vscode/v*"
5+
branches:
6+
- main
7+
paths:
8+
- 'frontend/vscode-extension/package.json'
79

810
permissions:
911
contents: read
@@ -52,9 +54,10 @@ jobs:
5254
working-directory: frontend/vscode-extension
5355
run: jq '.publisher = "hatchet-dev"' package.json > tmp.json && mv tmp.json package.json
5456

55-
- name: Extract version from tag
57+
- name: Extract version from package.json
5658
id: version
57-
run: echo "VERSION=${GITHUB_REF_NAME#vscode/v}" >> $GITHUB_OUTPUT
59+
working-directory: frontend/vscode-extension
60+
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
5861

5962
- name: Package extension
6063
working-directory: frontend/vscode-extension

‎.github/workflows/vscode-release.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: VS Code Extension Release
22

33
on:
44
push:
5-
tags:
6-
- 'vscode/v*'
5+
branches:
6+
- main
7+
paths:
8+
- 'frontend/vscode-extension/package.json'
79

810
permissions:
911
contents: write
@@ -48,9 +50,10 @@ jobs:
4850
working-directory: frontend/vscode-extension
4951
run: pnpm build:prod
5052

51-
- name: Extract version from tag
53+
- name: Extract version from package.json
5254
id: version
53-
run: echo "VERSION=${GITHUB_REF_NAME#vscode/v}" >> $GITHUB_OUTPUT
55+
working-directory: frontend/vscode-extension
56+
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
5457

5558
- name: Package extension
5659
working-directory: frontend/vscode-extension
@@ -65,6 +68,7 @@ jobs:
6568
- name: Upload .vsix as release artifact
6669
uses: softprops/action-gh-release@v2
6770
with:
71+
tag_name: vscode/v${{ steps.version.outputs.VERSION }}
6872
files: frontend/vscode-extension/hatchet-${{ steps.version.outputs.VERSION }}.vsix
6973
name: Hatchet VS Code Extension v${{ steps.version.outputs.VERSION }}
7074
body: |

‎frontend/vscode-extension/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ This is an extension for [Hatchet](https://github.com/hatchet-dev/hatchet) which
66

77
After installation, each Hatchet DAG definition will show a button `Show Hatchet DAG`:
88

9-
![VSCode Button](./assets/vscode_button.png)
9+
![VSCode Button](https://raw.githubusercontent.com/hatchet-dev/hatchet/main/frontend/vscode-extension/assets/vscode_button.png)
1010

1111
This will then open a webview showing the DAG definition. As you update your definition, the webview will automatically stay up to date:
1212

13-
![Webview](./assets/vscode_dag.png)
13+
![Webview](https://raw.githubusercontent.com/hatchet-dev/hatchet/main/frontend/vscode-extension/assets/vscode_dag.png)
1414

1515
## Reporting issues
1616

‎frontend/vscode-extension/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "hatchet",
33
"displayName": "Hatchet",
44
"description": "Visualize Hatchet workflow DAGs inline in your editor",
5-
"version": "0.1.1",
5+
"version": "0.1.2",
66
"publisher": "hatchet",
77
"license": "MIT",
88
"repository": {

0 commit comments

Comments
 (0)