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

Fix migrate contracts CI job #305

Merged
merged 5 commits into from
Sep 30, 2019
Merged

Fix migrate contracts CI job #305

merged 5 commits into from
Sep 30, 2019

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented Sep 30, 2019

In this PR we update CI to support latest changes from #268 where we import a @keep-network/keep-ecdsa package from GitHub Package Registry:

  • Authenticate to GitHub Package Registry with GITHUB_TOKEN env variable in .npmrc file.
  • Use github-package-registry CircleCI context which has GITHUB_TOKEN env variable configured.
  • Store .npmrc file in a workspace.
  • Attach the workspace in jobs which require .npmrc file.
  • In circleci-migrate-contracts.sh script used by migrate_contracts job we install @keep-network/keep-tecdsa dependency.
  • Rename @keep-network/keep-tecdsa package to @keep-network/keep-ecdsa.

migrate_contracts step (which is normally executed on master branch) has been confirmed to work correctly by removing branch filtering. The job was execution successful: https://circleci.com/gh/keep-network/tbtc/6587.

We pulled a dependency to @keep-network/keep-tecdsa package placed in
GitHub Package Registry to package.json. Here we install it as part of
migrations script as dependencies are not insatlled from package.json
but separately manually instead.
@nkuba nkuba force-pushed the fix-migrate-contracts branch from 1a6db17 to 5d86281 Compare September 30, 2019 12:29
We set up npm to authenticate with github package registry as a job and
persist configuration file to workspace and attach it to jobs which
require it.
We also use `github-package-registry` context which has configured
GITHUB_TOKEN environment variable.
@nkuba nkuba force-pushed the fix-migrate-contracts branch from 20504a1 to 6ee8e65 Compare September 30, 2019 13:13
keep-tecdsa package was renamed to keep-ecdsa package in @keep-network
scope. Here we update the dependency to the new name.
@nkuba nkuba force-pushed the fix-migrate-contracts branch from 6ee8e65 to 8e6db78 Compare September 30, 2019 13:31
@nkuba nkuba marked this pull request as ready for review September 30, 2019 13:34
Copy link
Contributor

@Shadowfiend Shadowfiend left a comment

Choose a reason for hiding this comment

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

Nice touch with the workspace. Let's do it!

@Shadowfiend Shadowfiend merged commit eacd1af into master Sep 30, 2019
@Shadowfiend Shadowfiend deleted the fix-migrate-contracts branch September 30, 2019 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