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

CI: Run ts-codegen on release #68

Open
josefleventon opened this issue Jun 26, 2023 · 4 comments
Open

CI: Run ts-codegen on release #68

josefleventon opened this issue Jun 26, 2023 · 4 comments
Assignees

Comments

@josefleventon
Copy link

Would be great if we could publish a @mesh-security/types NPM package on every release.

@JakeHartnell JakeHartnell changed the title CI: Run codegen on release CI: Run ts-codegen on release Jun 26, 2023
@ethanfrey
Copy link
Collaborator

ethanfrey commented Jun 26, 2023

Happy for you to add that to CI. As it is pure npm / node.js code and I don't know github actions well

You can make a PR adding another step after build-schemas in the release workflow

@ethanfrey
Copy link
Collaborator

Let me refine my question. Can you provide me an example of any other project that does this? (Build and publish the ts-codegen bindings)

I thought a bit more and this is rather complex. I have always just downloaded wasm files and schema and build the new bindings in my client side libs. (I mean, a simple shell script that takes a version arg to download can do this pretty easy).

To really make this seamless, we would need to publish the actual wasm contracts (or .wasm.gz) in the npm package as well.

@ethanfrey
Copy link
Collaborator

Note: I don't even see any auto-upload (of wasm or json schema) on dao-dao's CI. I consider this a more advanced project and we will try to cover what they can do. Would be cool if they add this functionality and we can port to mesh-security

@josefleventon
Copy link
Author

@ethanfrey I can set this up -- we can use CircleCI to do this. CircleCI will build contracts into wasm files and when a new release is created, then run codegen & publish the npm package.

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

No branches or pull requests

4 participants