Skip to content

Commit 092be86

Browse files
committed
chore(release): bump extension to v0.2.0 and npm to v1.1.2
Harden extension publish workflow so an existing Marketplace version no longer blocks Open VSX.
1 parent d3d07c1 commit 092be86

6 files changed

Lines changed: 42 additions & 6 deletions

File tree

.github/workflows/publish-extension.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,18 @@ jobs:
3636
exit 0
3737
fi
3838
VSIX=$(ls build/ts-hover-prettify-vscode-*.vsix)
39-
pnpm exec vsce publish --packagePath "$VSIX"
39+
set +e
40+
OUTPUT=$(pnpm exec vsce publish --packagePath "$VSIX" 2>&1)
41+
EXIT=$?
42+
set -e
43+
echo "$OUTPUT"
44+
if [ "$EXIT" -ne 0 ]; then
45+
if echo "$OUTPUT" | grep -qi "already exists"; then
46+
echo "Version already published to VS Marketplace — continuing."
47+
exit 0
48+
fi
49+
exit "$EXIT"
50+
fi
4051
4152
- name: Publish to Open VSX
4253
working-directory: packages/vscode-extension
@@ -48,4 +59,15 @@ jobs:
4859
exit 0
4960
fi
5061
VSIX=$(ls build/ts-hover-prettify-vscode-*.vsix)
51-
pnpm dlx ovsx publish "$VSIX"
62+
set +e
63+
OUTPUT=$(pnpm dlx ovsx publish "$VSIX" 2>&1)
64+
EXIT=$?
65+
set -e
66+
echo "$OUTPUT"
67+
if [ "$EXIT" -ne 0 ]; then
68+
if echo "$OUTPUT" | grep -qi "already exists"; then
69+
echo "Version already published to Open VSX — continuing."
70+
exit 0
71+
fi
72+
exit "$EXIT"
73+
fi

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ See the package changelog for npm release history.
2525

2626
### `ts-hover-prettify` (npm)
2727

28+
- **1.1.2** — Rewrite READMEs and tidy license metadata; no API changes.
2829
- **1.1.1** — Updated README and changelog for the pnpm monorepo layout; no API changes.
2930
- **1.1.0** — README and LICENSE published with the package.
3031
- **1.0.0** — Initial release: `Prettify` type and `global` entry for declaration projects.
3132

3233
### `ts-hover-prettify-vscode` (extension)
3334

35+
- **0.2.0** — CI publish workflow tolerates "already exists" on either registry so retries can finish Open VSX / Marketplace independently.
3436
- **0.1.4** — Nested `tsconfig.json` discovery; aligned virtual types path with `.vscode/ts-hover-prettify.d.ts`; avoid breaking implicit tsconfig projects.
3537
- **0.1.2** — Virtual type injection for narrow `include` lists.
3638
- **0.1.1** — Reliable plugin registration and TS server restart on activation.

packages/ts-hover-prettify/CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Changelog
22

3+
All notable changes to **ts-hover-prettify** are documented here.
4+
5+
## 1.1.2
6+
7+
### Patch Changes
8+
9+
- Rewrite READMEs and tidy license metadata. No API changes; `Prettify` and `import "ts-hover-prettify/global"` unchanged.
10+
311
## 1.1.1
412

513
### Patch Changes
614

715
- Update package README and changelog for the pnpm monorepo layout. No API changes; `Prettify` and `import "ts-hover-prettify/global"` unchanged.
816

9-
All notable changes to **ts-hover-prettify** are documented here.
10-
1117
## [1.1.0] - 2023-09-25
1218

1319
### Added

packages/ts-hover-prettify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-hover-prettify",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "Utility to make the hover of a typescript object more readable",
55
"repository": "https://github.com/MarcoAntolini/ts-hover-prettify",
66
"homepage": "https://github.com/MarcoAntolini/ts-hover-prettify#readme",

packages/vscode-extension/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to **ts-hover-prettify-vscode** are documented here.
44

5+
## [0.2.0] - 2026-05-29
6+
7+
### Fixed
8+
9+
- CI: treat "already exists" as a non-fatal skip when publishing to VS Marketplace or Open VSX, so a partial publish can be retried without blocking the other registry.
10+
511
## [0.1.4] - 2026-05-29
612

713
### Fixed

packages/vscode-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"displayName": "TS Hover Prettify",
55
"description": "Prettier TypeScript hover tooltips via the Prettify utility type (zero-config)",
6-
"version": "0.1.4",
6+
"version": "0.2.0",
77
"publisher": "marcoantolini",
88
"license": "MIT",
99
"repository": "https://github.com/MarcoAntolini/ts-hover-prettify",

0 commit comments

Comments
 (0)