Skip to content
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

Merged
merged 5 commits into from
Sep 26, 2023

Conversation

oveddan
Copy link
Collaborator

@oveddan oveddan commented Sep 19, 2023

  • 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.

@oveddan
Copy link
Collaborator Author

oveddan commented Sep 19, 2023

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"
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

@oveddan oveddan changed the base branch from changesets-remove-duplicate-ci-task to main September 21, 2023 18:43
@oveddan oveddan force-pushed the add-back-version-check branch from 3506af3 to 10e0af1 Compare September 26, 2023 20:21
@oveddan oveddan force-pushed the add-back-version-check branch from 10e0af1 to f4d5c9f Compare September 26, 2023 20:23
@oveddan oveddan merged commit 652aaa7 into main Sep 26, 2023
7 checks passed
@oveddan oveddan deleted the add-back-version-check branch September 26, 2023 21:30
iainnash pushed a commit that referenced this pull request Jan 11, 2024
…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
iainnash pushed a commit that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants