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

Publish unstable / snapshot packages on every change #426

Open
bestbeforetoday opened this issue Jun 5, 2024 · 0 comments
Open

Publish unstable / snapshot packages on every change #426

bestbeforetoday opened this issue Jun 5, 2024 · 0 comments

Comments

@bestbeforetoday
Copy link
Member

bestbeforetoday commented Jun 5, 2024

As a smart contract developer
I want snapshot versions of fabric-chaincode-shim to be published on every change
So that I can use development fixes or features before a formal release is published

The push.yml workflow should be extended to publish an "unstable" version of the chaincode packages on every merged pull request. Publishing might be better to GitHub Packages rather than the public NPM registry to avoid any risk of publishing an unintended release version and to avoid too much clutter in the public NPM registry, but either acceptable solutions.

"Unstable" builds should:

  • Have -unstable (or some other qualifier) appended to their version.
  • Be tagged as unstable.
  • Have dependencies rewritten by the publishing process to point to similarly versioned chaincode packages.

The logic for rewriting dependency versions would be similar (or reuse directly) the updateversions.sh script.

The fabric-gateway publishing process might be useful as a reference:

The GitHub Actions documentation on publishing Node packages is also a useful reference.

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

1 participant