Skip to content

Commit 18e2928

Browse files
author
Michael Gasperini
committed
ci: verify packaged extension identity before publishing
1 parent 60c7d12 commit 18e2928

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ jobs:
106106
test "$expected" != "null"
107107
actual="sha256:$(sha256sum ".release/$VSIX" | awk '{print $1}')"
108108
test "$actual" = "$expected"
109+
unzip -p ".release/$VSIX" extension/package.json > vsix-package.json
110+
test "$(jq -r '.publisher' vsix-package.json)" = "mikesoft"
111+
test "$(jq -r '.name' vsix-package.json)" = "vscode-kimi-code-cli-launcher"
112+
test "$(jq -r '.version' vsix-package.json)" = "${RELEASE_TAG#v}"
109113
110114
- name: Publish to Visual Studio Marketplace
111115
env:

0 commit comments

Comments
 (0)