diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 4ffd2739e..5c74e1ed3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -23,8 +23,8 @@ jobs: . .github/workflows/scripts/setup-linux.sh [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" npm ci - npm run package - npm run preview-package + npm run dev-package + npm run preview-package -- dev for file in *.vsix; do name="$(basename "$file" .vsix)-${{github.run_number}}.vsix" echo "Created bundle $name" diff --git a/scripts/preview_package.ts b/scripts/preview_package.ts index 7c26457fd..df25c1666 100644 --- a/scripts/preview_package.ts +++ b/scripts/preview_package.ts @@ -40,7 +40,10 @@ main(async () => { // Increment the minor version and set the patch version to today's date const minor = version.minor + 1; const patch = formatDate(new Date()); - const previewVersion = `${version.major}.${minor}.${patch}`; + let previewVersion = `${version.major}.${minor}.${patch}`; + if (process.argv.includes("dev")) { + previewVersion = `${previewVersion}-dev`; + } // Make sure that the new minor version is odd if (minor % 2 !== 1) { throw new Error(