Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Version Tether: Continuous packaging and versioning #544

Merged
merged 5 commits into from
Apr 1, 2020

Conversation

Shadowfiend
Copy link
Contributor

This PR picks up the work in keep-core and keep-ecdsa to publish new,
artifacts-included npm packages on contract migration. It adds the same
functionality to tbtc, and additionally updates the version string referencing
keep-ecdsa to properly integrate with keep-ecdsa's versioning.

The major changes are as in keep-ecdsa:

  • package.json for Solidity contracts is set to <version>-pre, with no
    numeric suffix.
  • A new Circle job, publish_npm_package, runs on master merge. This
    job updates the package version to -pre.<number>, where <number>
    represents a new, unpublished version.
  • Contract artifacts from the contract migration are copied to an artifacts/
    subdirectory and included in the package.
  • The package is published to the main npm repository (not the GitHub
    package repository).

Auto-publishing is already happening on keep-core and keep-ecdsa, with a
build-time-decided -pre build going out on every master merge. The
package.json file for tbtc now references the latest version of that
-pre build, and is ready to start including artifacts with the
tbtc build as well. Finally, the version for tbtc is aligned to
the keep-ecdsa and keep-core versions.
Drop an incorrect `main` setting, and fill in the repository, bugs, and
homepage links. Also improve the package description.
Now that keep-ecdsa is publishing to the main npm repository, GitHub
packages aren't being used.
This script is very close to the one used in keep-core and keep-ecdsa,
and will eventually be abstracted out once the commonalities and
differences shake out.
Two parts here:
- A symbolic link from node_modules that fixes the push that was
  failing due to contract resolution issues.
- Add a `|| echo` with an error message if the push fails, so that the
  migration itself is not blocked by the push failure.

Largely taken from a keep-core commit of the same ilk.
@Shadowfiend Shadowfiend force-pushed the version-tether branch 2 times, most recently from 651ecfc to 6a6906e Compare March 31, 2020 23:54
@Shadowfiend Shadowfiend marked this pull request as ready for review March 31, 2020 23:55
Copy link
Contributor

@sthompson22 sthompson22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The journey continues!

@sthompson22 sthompson22 merged commit e318cb2 into master Apr 1, 2020
@sthompson22 sthompson22 deleted the version-tether branch April 1, 2020 17:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants