Support updating pre-release versions (#1074)

* Support updating pre-release versions

* Update Makefile
This commit is contained in:
pakrym-stripe 2022-06-15 16:20:22 -07:00 committed by GitHub
parent f2e05a20b2
commit 020328bf27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
.PHONY: update-version codegen-format
update-version:
@echo "$(VERSION)" > VERSION
@perl -pi -e 's|VERSION = "[.\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
codegen-format:
bundle exec rubocop -o /dev/null --auto-correct