Skip to content

Commit

Permalink
chore: release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Vtec234 committed Jun 29, 2021
1 parent c3a17e4 commit e3b93fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"scripts": {
"build": "lerna run build",
"watch": "lerna run --parallel watch",
"package": "lerna run build; lerna run package",
"lint": "lerna run lint"
},
"devDependencies": {
Expand Down
16 changes: 10 additions & 6 deletions vscode-lean4/release.sh → release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,22 @@ if [ -z "$OVSX_PAT" ]; then
fi

set -ex

npm install
npx lerna bootstrap
npm run build

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

npx vsce publish
npx lerna exec --scope=lean4 npx -- vsce publish

npx ovsx publish
npx lerna exec --scope=lean4 npx -- ovsx publish

git push
git push --tags

npx vsce package
hub release create -m "vscode-lean4 $new_version" v$new_version -a lean4-$new_version.vsix
npx lerna run --scope=lean4 package
hub release create -m "vscode-lean4 $new_version" v$new_version -a vscode-lean4/lean4-$new_version.vsix
2 changes: 1 addition & 1 deletion vscode-lean4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "webpack --env production",
"build": "webpack --env development",
"build": "webpack --env production",
"watch": "webpack --env development --watch",
"lint": "eslint -c ./.eslintrc.js ./src/**/*.ts",
"package": "vsce package"
Expand Down

0 comments on commit e3b93fa

Please sign in to comment.