Skip to content

Commit

Permalink
pre-release 24.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrn authored May 3, 2024
1 parent 58abe4e commit 2f387ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/get-marketplace-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ set -Ee
#VERSION_SUFFIX="$((LAST_COMMIT_TIMESTAMP-LAST_TAG_TIMESTAMP))"
# We remove the last number from the node reported version.
VERSION_PREFIX=$(node -p "require('./package.json').version")
VERSION_SUFFIX=2
VERSION_SUFFIX=3000000
echo -n "${VERSION_PREFIX%.*}.${VERSION_SUFFIX}"
6 changes: 3 additions & 3 deletions tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ rm -f ./*.vsix
yarn run webpack
VERSION="$(./tools/get-marketplace-version.sh)"
vsce_package_args=(--no-dependencies --no-git-tag-version --no-update-package-json --readme-path docs/README.md)
# if [[ "$VERSION" != *.0 ]]; then
# vsce_package_args+=("--pre-release")
# fi
if [[ "$VERSION" != *.0 ]]; then
vsce_package_args+=("--pre-release")
fi

# --no-dependencies and --no-yarn needed due to https://github.com/microsoft/vscode-vsce/issues/439
yarn run vsce package "${vsce_package_args[@]}" "${VERSION}"
Expand Down
6 changes: 3 additions & 3 deletions tools/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ set -Eeuo pipefail
for FILE in ./*.vsix; do
VERSION=$(unzip -p "${FILE}" extension/package.json | jq -r .version)
publish_args=()
# if [[ "$VERSION" != *.0 ]]; then
# publish_args+=("--pre-release")
# fi
if [[ "$VERSION" != *.0 ]]; then
publish_args+=("--pre-release")
fi
echo "Publishing ${VERSION}" "${publish_args[@]}"
yarn run vsce publish "${publish_args[@]}" --skip-duplicate --packagePath "${FILE}" --readme-path docs/README.md
yarn run ovsx publish "${publish_args[@]}" --skip-duplicate "${FILE}"
Expand Down

0 comments on commit 2f387ca

Please sign in to comment.