From bb36294428d576bfdb834ada00585d8244431e13 Mon Sep 17 00:00:00 2001 From: Harry Pierson Date: Mon, 18 Mar 2024 10:21:00 -0700 Subject: [PATCH] set preview field of package.json for pre-release builds --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c35b143..b580d6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,7 +70,9 @@ jobs: run: npx vsce pack ${{ steps.relInfo.outputs.version }} --no-git-tag-version - name: Pack Pre-Release Extension if: ${{ fromJSON(steps.relInfo.outputs.preRelease) }} - run: npx vsce pack ${{ steps.relInfo.outputs.version }} --no-git-tag-version --pre-release + run: | + npm pkg set preview=true --json + npx vsce pack ${{ steps.relInfo.outputs.version }} --no-git-tag-version --pre-release - name: Upload Extension Artifact uses: actions/upload-artifact@v4.3.1 with: