Adds the release.yml workflow in order to publish to npm automatically.
The trigger for the workflow is the pushes to branches whose name matches the expression v[0-9]+.x.
So, on every push, the workflow checks out the code, executes npm pack and npm publish
npm pack internally invokes build script which in turn executes wasm-pack build. Check package.json for more details.
Motivation
Additional Notes
Describe how to test your changes
Checklist
[ ] The CHANGELOG.md has been updated
[ ] Unit tests have been updated and pass
[ ] If known, an appropriate milestone has been selected
What does this PR do?
Adds the
release.yml
workflow in order to publish to npm automatically. The trigger for the workflow is the pushes to branches whose name matches the expressionv[0-9]+.x
.So, on every push, the workflow checks out the code, executes
npm pack
andnpm publish
npm pack
internally invokesbuild
script which in turn executeswasm-pack build
. Check package.json for more details.Motivation
Additional Notes
Describe how to test your changes
Checklist