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

ci(release-automation): make release issuance atomic #3563

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

petermetz
Copy link
Contributor

The NodeJS package publishing GitHub workflow job will now publish
all packages to both GHCR and npmjs.org registries.

It dynamically reconfigures the .npmrc file with the appropriate registry
URL and the correct token gets set through the environment variables as well.

The lerna publish script gets invoked twice, with different registry configurations
which was the only way I found to make sure that all the packages are deployed
to all the locations where they are to be used.

Fixes #451

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

Pull Request Requirements

  • Rebased onto upstream/main branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.
  • Have git sign off at the end of commit message to avoid being marked red. You can add -s flag when using git commit command. You may refer to this link for more information.
  • Follow the Commit Linting specification. You may refer to this link for more information.

Character Limit

  • Pull Request Title and Commit Subject must not exceed 72 characters (including spaces and special characters).
  • Commit Message per line must not exceed 80 characters (including spaces and special characters).

A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.

The NodeJS package publishing GitHub workflow job will now publish
all packages to both GHCR and npmjs.org registries.

It dynamically reconfigures the .npmrc file with the appropriate registry
URL and the correct token gets set through the environment variables as well.

The lerna publish script gets invoked twice, with different registry configurations
which was the only way I found to make sure that all the packages are deployed
to all the locations where they are to be used.

Fixes hyperledger-cacti#451

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit that referenced this pull request Sep 30, 2024
In addition to being a regular release candidate, this also includes a
(probable) fix for the npm/ghcr publishing github action.

The above fix is the entire reason why we are issuing this release to begin
with: to verify that the automatic publishing script works before issuing
the v2.0.0 GA release after long last.

Depends on #3563

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz merged commit 02409de into hyperledger-cacti:main Oct 1, 2024
147 of 148 checks passed
@petermetz petermetz deleted the petermetz/issue451 branch October 1, 2024 07:21
petermetz added a commit that referenced this pull request Oct 1, 2024
In addition to being a regular release candidate, this also includes a
(probable) fix for the npm/ghcr publishing github action.

The above fix is the entire reason why we are issuing this release to begin
with: to verify that the automatic publishing script works before issuing
the v2.0.0 GA release after long last.

Depends on #3563

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
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

Successfully merging this pull request may close these issues.

ci(release-automation): make release issuance atomic
3 participants