-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically update version of contracts based on package.json version from changesets #192
Conversation
oveddan
commented
Sep 19, 2023
•
edited
Loading
edited
- Added a script that updates the contract version from the current package.json version, so we no longer need to manually set it.
- Updated the github changeset action to both update the package.json and contract version
- Added back the test that verifies the contract version matches the package version.
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
@@ -24,7 +25,8 @@ | |||
"storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl", | |||
"release": "yarn run prepack && changeset publish", | |||
"js-test:watch": "vitest dev", | |||
"anvil": "anvil --fork-url https://rpc.zora.energy --fork-block-number 2550000 --chain-id 31337" | |||
"anvil": "anvil --fork-url https://rpc.zora.energy --fork-block-number 2550000 --chain-id 31337", | |||
"update-version": "changeset version && yarn update-contract-version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked and didn't see a simpler way to integrate the call into pre-release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could do it in the prepack
step, but i thought it should happen only whenever the version is updated.
3506af3
to
10e0af1
Compare
…oth the package.json version and contract version
10e0af1
to
f4d5c9f
Compare
…on from changesets (#192) * adding back ensuring that the package version matches whats in the contract * added script that generates version file * Updated github action to call an update version script that updates both the package.json version and contract version * fix typo * fix version change