about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-24 19:29:05 +0000
committerbors <bors@rust-lang.org>2023-04-24 19:29:05 +0000
commit3f21b791e9038fb482f04c7b7b77bd0f28d12e80 (patch)
tree44b0c64435bf9b590b85aebe8268c25f58ba6023
parent8f06f995c5d4ddd0fb5dc451e482a8b3024fa151 (diff)
parent12cf9b6788edc56597cad225a6bdd835b2928028 (diff)
downloadrust-3f21b791e9038fb482f04c7b7b77bd0f28d12e80.tar.gz
rust-3f21b791e9038fb482f04c7b7b77bd0f28d12e80.zip
Auto merge of #14648 - zr40:publish-nightly-vsce-pre-release, r=lnicola
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.
-rw-r--r--.github/workflows/release.yaml2
1 files changed, 1 insertions, 1 deletions
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')