diff --git a/package-lock.json b/package-lock.json index 6da7215a..8ec7473e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vscode-deephaven", - "version": "0.1.14", + "version": "0.1.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vscode-deephaven", - "version": "0.1.14", + "version": "0.1.15", "workspaces": [ "packages/*" ], diff --git a/package.json b/package.json index 53a66cd0..e4c24226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-deephaven", - "version": "0.1.14", + "version": "0.1.15", "displayName": "Deephaven in VS Code", "description": "", "publisher": "deephaven", @@ -35,7 +35,7 @@ "compile:prod": "npm run check:types && npm run test:lint && node scripts/esbuild.js --production", "icon:gen": "node icons/generate.mjs", "package:latest": "vsce package -o releases/vscode-deephaven-latest.vsix", - "publish:prerelease": "vsce publish --pre-release", + "publish:prerelease": "./scripts/publish-prerelease.sh", "report:ctrfmerge": "ctrf merge e2e/reports --keep-reports --output-dir test-reports --output ctrf-report.json", "report:ctrfsummary": "github-actions-ctrf test-reports/ctrf-report.json", "report:junit2ctrf": "junit-to-ctrf test-reports/vitest.junit.xml --output test-reports/ctrf-report.json", diff --git a/scripts/publish-prerelease.sh b/scripts/publish-prerelease.sh index 7d9c4b82..955e4839 100755 --- a/scripts/publish-prerelease.sh +++ b/scripts/publish-prerelease.sh @@ -5,11 +5,20 @@ set -e # Determine current npm version and calculate next patch version current=$(node -p -e "require('./package.json').version") next=$(npx semver $current -i patch) +tag="v$next-pre" -# Create a new branch, update the version, and create a new tag -git checkout -b v$next-pre +# Create a new branch +git checkout -b $tag + +# Update version npm version --git-tag-version=false $next -git tag $next-pre + +# Commit and tag the new version +git add package.json +git add package-lock.json +git commit -m "$tag" +git push -u origin HEAD +git tag $tag git push --tags # Publish a pre-release version of the extension to the Marketplace