Skip to content

Commit

Permalink
default enable publish
Browse files Browse the repository at this point in the history
  • Loading branch information
shirtiny committed Nov 27, 2021
1 parent 85914d9 commit 0925d0b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,19 @@ error() {
exit 1
}

is_valid_version() {
case $1 in
patch) ;;
minor) ;;
major) ;;
*) error "🚨 Invalid version >> $1" ;;
esac
}

assert_ready_to_publish() {
# is_valid_version "$1"
if [ ! -d dist ]; then
error "Need build first"
fi
}

# prepare_folder() {
# echo "Cleanup folders to publish"
# find dist/tsc -type f -name '*.js' -print -delete
# find dist/tsc -type f -name '*.js.map' -print -delete
# mv dist/tsc dist/types
# }

publish() {
echo "Publish"
echo "Confirm version"
# yarn publish --access public
yarn publish --access public
git push --tags
git push
}

assert_ready_to_publish
# prepare_folder
publish

0 comments on commit 0925d0b

Please sign in to comment.