From 12cf9b6788edc56597cad225a6bdd835b2928028 Mon Sep 17 00:00:00 2001 From: Matthijs van der Vleuten Date: Mon, 24 Apr 2023 21:02:24 +0200 Subject: [PATCH] Specify `--pre-release` when publishing vsce nightly According to https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions, when publishing pre-release versions, `--pre-release` must also be passed in the publish step. Currently the behavior with and without the flag seems to be the same, but since it's documented to be required, don't rely on this staying that way. This flag was previously removed in #13020, so this partially reverts that change. --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 48f4c6b55ed..43681c785fd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -270,7 +270,7 @@ jobs: - name: Publish Extension (Code Marketplace, nightly) if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer') working-directory: ./editors/code - run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix + run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release - name: Publish Extension (OpenVSX, nightly) if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')