From 2f24ea1313849bf80d915deffcc38cc6ad2be98a Mon Sep 17 00:00:00 2001 From: Ryan Bas Date: Tue, 12 May 2026 12:05:04 -0600 Subject: [PATCH] fix: stamp VS Code extension version for snapshot publishes vsce rejects publish when the version already exists on the marketplace. Stamp package.json with BUILD_NUMBER as a 4th segment (e.g. 0.1.0.42) before publishing, matching the Chrome extension approach. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8b267a..bba4919 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,6 +74,15 @@ jobs: api-key: ${{ secrets.AMO_JWT_ISSUER }} api-secret: ${{ secrets.AMO_JWT_SECRET }} + - name: Stamp VS Code extension version + if: inputs.extension + working-directory: packages/vscode-extension + env: + BUILD_NUMBER: ${{ github.run_number }} + run: | + BASE=$(node -p "require('./package.json').version") + npm version "${BASE}.${BUILD_NUMBER}" --no-git-tag-version + - name: Publish VS Code extension (pre-release) if: inputs.extension working-directory: packages/vscode-extension