Skip to content

Commit

Permalink
chore: support crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Jul 8, 2024
1 parent 83a0298 commit e9c2091
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
echo "Published on npm"
fi

echo "Publish on crates.io (dry-run)"
npm publish --dry-run
read -r -p "Are you sure to publish on crates.io? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
cargo publish
echo "Published on npm"
fi

echo "Create release $version for repo: $user/$repo branch: $branch"
read -r -p "Are you sure to publish the draft? [Y/n]" response
response=${response,,} # tolower
Expand Down

0 comments on commit e9c2091

Please sign in to comment.