When adapting to a new starknet-devnet version, be sure to have replaced all occurrences of the previous version with the new one.
If possible, keep the semver of starknet-devnet-js the same as that of starknet-devnet.
Make sure:
- the underlying Devnet is compatible with the starknet.js version configured in package.json
--fork-networkin config.yml is using an up-to-date URL with the correct RPC version.
The release of a new version is done automatically if the version in package.json on master is different from the one on npm. If the semver you use is not of the form /v?[0-9.]+$/ (notice the optional v), a pre-release will be made using dist-tag beta. Otherwise a dist-tag latest is used.
Follow these steps to create a new release on npm and GitHub:
-
$ git checkout master- Using another branch is only acceptable if making a pre-release, but then the publishing script needs to be run manually (or the CI config file needs to be modified to include your branch).
-
Update the package version and create a git tag
- If the package version has already been incremented, just create a tag with
$ git tag <VERSION>. - Otherwise run
$ npm version <NEW_VERSION>. See what<NEW_VERSION>can be here.
- If the package version has already been incremented, just create a tag with
-
$ git push- Once the change is pushed, the CI/CD pipeline will release the new version when all tests pass.
-
$ git push origin v<NEW_VERSION>- Notice how the tag name has the
vprefix.
- Notice how the tag name has the
Avoid the automatic release process by adding [skip ci] to your commit message.