Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion scripts/preview_package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading