<commit_before>#!/bin/sh
if [ $# != 1 ]; then
  echo Usage: ./release.sh 1.2.3
  exit 1
fi

if [ -z "$OVSX_PAT" ]; then
  OVSX_PAT="$(pass pat/openvsx)" || exit 1
  export OVSX_PAT
fi

set -ex
new_version="$1"
sed -i 's/"version": ".*"/"version": "'$new_version'"/' package.json
npm i
git commit -am "Release $new_version"
git tag -a v$new_version -m "vscode-lean $new_version"

./node_modules/.bin/vsce publish

./node_modules/.bin/ovsx publish

git push
git push --tags<commit_msg>Update release script.<commit_after>#!/bin/sh
if [ $# != 1 ]; then
  echo Usage: ./release.sh 1.2.3
  exit 1
fi

if [ -z "$OVSX_PAT" ]; then
  OVSX_PAT="$(pass pat/openvsx)" || exit 1
  export OVSX_PAT
fi

if [ -z "$VSCE_PAT" ]; then
  VSCE_PAT="$(pass pat/vsce)" || exit 1
  export VSCE_PAT
fi

set -ex
new_version="$1"
sed -i 's/"version": ".*"/"version": "'$new_version'"/' package.json
npm i
git commit -am "Release $new_version"
git tag -a v$new_version -m "vscode-lean $new_version"

./node_modules/.bin/vsce publish

./node_modules/.bin/ovsx publish

git push
git push --tags
{'fraction_non_alphanumeric': 0.17746478873239438, 'fraction_numerical': 0.014084507042253521, 'mean_word_length': 3.5361702127659576, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6286506', 'n_tokens_mistral': 459, 'n_tokens_neox': 432, 'n_words': 120}