From f3856c785bd46553351b4f7acff904710846162e Mon Sep 17 00:00:00 2001 From: Vasil Boyadzhiev Date: Fri, 15 Nov 2024 16:34:04 +0000 Subject: [PATCH 01/15] ci: Enabling workflows for semantic release Signed-off-by: Vasil Boyadzhiev --- .../node-flow-deploy-release-artifact.yaml | 74 ++++++++++++++----- .../node-zxc-build-release-artifact.yaml | 40 +++++++++- .releaserc.json | 47 ++++++++++++ ...com.hedera.gradle.maven-publish.gradle.kts | 12 +-- ...com.hedera.gradle.nexus-publish.gradle.kts | 2 +- 5 files changed, 146 insertions(+), 29 deletions(-) create mode 100644 .releaserc.json diff --git a/.github/workflows/node-flow-deploy-release-artifact.yaml b/.github/workflows/node-flow-deploy-release-artifact.yaml index 88c88c911d5a..19164cf044a7 100644 --- a/.github/workflows/node-flow-deploy-release-artifact.yaml +++ b/.github/workflows/node-flow-deploy-release-artifact.yaml @@ -51,34 +51,72 @@ jobs: prerelease: ${{ steps.tag.outputs.prerelease }} steps: - name: Harden Runner - uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 + uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 with: egress-policy: audit - - name: Install Semantic Version Tools + - name: Checkout Code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + with: + token: ${{ secrets.GH_ACCESS_TOKEN }} + fetch-depth: 0 + + + - name: Install GnuPG Tools run: | - echo "::group::Download SemVer Binary" - sudo curl -L -o /usr/local/bin/semver https://raw.githubusercontent.com/fsaintjacques/semver-tool/master/src/semver - echo "::endgroup::" - echo "::group::Change SemVer Binary Permissions" - sudo chmod -v +x /usr/local/bin/semver - echo "::endgroup::" - echo "::group::Show SemVer Binary Version Info" - semver --version - echo "::endgroup::" + if ! command -v gpg2 >/dev/null 2>&1; then + echo "::group::Updating APT Repository Indices" + sudo apt update + echo "::endgroup::" + echo "::group::Installing GnuPG Tools" + sudo apt install -y gnupg2 + echo "::endgroup::" + fi + + - name: Import GPG key + id: gpg_key + uses: step-security/ghaction-import-gpg@6c8fe4d0126a59d57c21f87c9ae5dd3451fa3cca # v6.1.0 + with: + gpg_private_key: ${{ secrets.GPG_KEY_CONTENTS }} + passphrase: ${{ secrets.GPG_KEY_PASSPHRASE }} + git_config_global: true + git_user_signingkey: true + git_commit_gpgsign: true + git_tag_gpgsign: false + + - name: Setup Node + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: 20 + + - name: Install Semantic Release + run: | + npm install -g semantic-release@21.0.7 @semantic-release/git@10.0.1 @semantic-release/exec@6.0.3 gradle-semantic-release-plugin@1.7.6 + npm install -g conventional-changelog-conventionalcommits@6.1.0 @commitlint/cli@17.6.6 @commitlint/config-conventional@17.6.6 + npm install -g marked-mangle@1.0.1 marked-gfm-heading-id@3.0.4 semantic-release-conventional-commits@3.0.0 + + - name: Calculate Next Version + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_USER_NAME }} + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_USER_EMAIL }} + GIT_COMMITTER_NAME: ${{ secrets.GIT_USER_NAME }} + GIT_COMMITTER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} + run: | + npx semantic-release --dry-run + ls -al + cat VERSION - name: Extract Tag Version id: tag run: | - RELEASE_VERSION="$(semver get release "${{ github.ref_name }}")" - PRERELEASE_VERSION="$(semver get prerel "${{ github.ref_name }}")" - - FINAL_VERSION="${RELEASE_VERSION}" + cat VERSION + RELEASE_VERSION="$(cat VERSION | tr -d '[:space:]')" PRERELEASE_FLAG="false" - [[ -n "${PRERELEASE_VERSION}" ]] && FINAL_VERSION="${RELEASE_VERSION}-${PRERELEASE_VERSION}" - [[ -n "${PRERELEASE_VERSION}" ]] && PRERELEASE_FLAG="true" + [[ "${RELEASE_VERSION}" == *"-"* ]] && PRERELEASE_FLAG="true" - echo "version=${FINAL_VERSION}" >>"${GITHUB_OUTPUT}" + echo "version=${RELEASE_VERSION}" >>"${GITHUB_OUTPUT}" echo "prerelease=${PRERELEASE_FLAG}" >>"${GITHUB_OUTPUT}" release-tag: diff --git a/.github/workflows/node-zxc-build-release-artifact.yaml b/.github/workflows/node-zxc-build-release-artifact.yaml index f3addaeef986..f88be67d0bbf 100644 --- a/.github/workflows/node-zxc-build-release-artifact.yaml +++ b/.github/workflows/node-zxc-build-release-artifact.yaml @@ -146,6 +146,36 @@ jobs: semver --version echo "::endgroup::" + - name: Setup Node + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 + with: + node-version: 20 + + - name: Install Semantic Release + run: | + npm install -g semantic-release@21.0.7 @semantic-release/git@10.0.1 @semantic-release/exec@6.0.3 gradle-semantic-release-plugin@1.7.6 + npm install -g conventional-changelog-conventionalcommits@6.1.0 @commitlint/cli@17.6.6 @commitlint/config-conventional@17.6.6 + npm install -g marked-mangle@1.0.1 marked-gfm-heading-id@3.0.4 semantic-release-conventional-commits@3.0.0 + + - name: Checkout Code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 + + - name: Calculate Next Version + if: ${{ inputs.version-policy == 'specified' }} + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_USER_NAME }} + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_USER_EMAIL }} + GIT_COMMITTER_NAME: ${{ secrets.GIT_USER_NAME }} + GIT_COMMITTER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} + run: | + npx semantic-release --dry-run + ls -al + cat VERSION + - name: Verify Workflow Parameters id: parameters run: | @@ -174,9 +204,6 @@ jobs: exit 2 fi - - name: Checkout Code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Java uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 with: @@ -205,7 +232,12 @@ jobs: - name: Compute Final Effective Version id: effective-version run: | - EFF_VERSION="$(./gradlew showVersion --quiet | tr -d '[:space:]')" + if [[ "${{ inputs.version-policy }}" == "specified" ]]; then + EFF_VERSION="${{ inputs.new-version }}" + else + EFF_VERSION="$(cat VERSION | tr -d '[:space:]')" + fi + PRERELEASE_SUFFIX="$(semver get prerel "${EFF_VERSION}")" PRERELEASE="false" [[ -n "${PRERELEASE_SUFFIX}" ]] && PRERELEASE="true" diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 000000000000..badc91541894 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,47 @@ +{ + "branches": ["main", "develop"], + "plugins": [ + ["@semantic-release/commit-analyzer", { + "preset": "conventional-commits", + "releaseRules": [ + {"type": "breaking", "release": "minor"}, + {"type": "feat", "release": "minor"}, + {"type": "fix", "release": "patch"}, + {"type": "docs", "release": "patch"}, + {"type": "style", "release": "patch"}, + {"type": "refactor", "release": "patch"}, + {"type": "perf", "release": "patch"}, + {"type": "test", "release": "patch"}, + {"type": "ci", "release": "patch"}, + {"type": "chore", "release": "patch"} + ], + "parserOpts": { + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] + } + }], + ["@semantic-release/release-notes-generator", { + "preset": "conventional-commits", + "presetConfig": { + "types": [ + {"type": "feat", "section": "Features"}, + {"type": "fix", "section": "Bug Fixes"}, + {"type": "docs", "section": "Documentation"}, + {"type": "style", "section": "Styles"}, + {"type": "refactor", "section": "Code Refactoring"}, + {"type": "perf", "section": "Performance Improvements"}, + {"type": "test", "section": "Tests"}, + {"type": "ci", "section": "Continuous Integration"}, + {"type": "chore", "section": "Chores"}, + {"type": "breaking", "section": "Breaking Changes"} + ] + } + }], + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + ["@semantic-release/git", { + "assets": ["package.json", "CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + }] + ] +} \ No newline at end of file diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts index 43667a50aa3a..9d9639f5ab3e 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts @@ -22,12 +22,12 @@ plugins { id("signing") } -tasks.withType().configureEach { - // Publishing tasks are only enabled if we publish to the matching group. - // Otherwise, Nexus configuration and credentials do not fit. - val publishingPackageGroup = providers.gradleProperty("publishingPackageGroup").orNull - enabled = publishingPackageGroup == project.group -} +// tasks.withType().configureEach { +// Publishing tasks are only enabled if we publish to the matching group. +// Otherwise, Nexus configuration and credentials do not fit. +// val publishingPackageGroup = providers.gradleProperty("publishingPackageGroup").orNull +// enabled = publishingPackageGroup == project.group +// } java { withJavadocJar() diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts index 429566cb793a..94e039bf66d2 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts @@ -44,7 +44,7 @@ tasks.named("closeSonatypeStagingRepository") { tasks.named("releaseMavenCentral") { group = "release" - dependsOn(tasks.closeAndReleaseStagingRepository) + dependsOn(tasks.named("closeSonatypeStagingRepository")) } tasks.register("releaseMavenCentralSnapshot") { From c6676f99a0185acbede623b3b0bae2f3566bf3b9 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 22 Nov 2024 08:38:22 -0600 Subject: [PATCH 02/15] TEMPORARY COMMIT FOR TESTING SEMANTIC RELEASE Signed-off-by: Andrew Brandt --- .releaserc.json | 2 +- .../com.hedera.gradle.maven-publish.gradle.kts | 12 ++++++------ .../com.hedera.gradle.nexus-publish.gradle.kts | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index badc91541894..a1cfff4b29e6 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,5 +1,5 @@ { - "branches": ["main", "develop"], + "branches": ["main", "develop", "semantic-release-workflow-update"], "plugins": [ ["@semantic-release/commit-analyzer", { "preset": "conventional-commits", diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts index 9d9639f5ab3e..43667a50aa3a 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.maven-publish.gradle.kts @@ -22,12 +22,12 @@ plugins { id("signing") } -// tasks.withType().configureEach { -// Publishing tasks are only enabled if we publish to the matching group. -// Otherwise, Nexus configuration and credentials do not fit. -// val publishingPackageGroup = providers.gradleProperty("publishingPackageGroup").orNull -// enabled = publishingPackageGroup == project.group -// } +tasks.withType().configureEach { + // Publishing tasks are only enabled if we publish to the matching group. + // Otherwise, Nexus configuration and credentials do not fit. + val publishingPackageGroup = providers.gradleProperty("publishingPackageGroup").orNull + enabled = publishingPackageGroup == project.group +} java { withJavadocJar() diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts index 94e039bf66d2..d95fa5f00400 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.nexus-publish.gradle.kts @@ -44,6 +44,7 @@ tasks.named("closeSonatypeStagingRepository") { tasks.named("releaseMavenCentral") { group = "release" +// dependsOn(tasks.closeAndReleaseStagingRepository) dependsOn(tasks.named("closeSonatypeStagingRepository")) } From d5b496a13ca1f8691e5316287bc3aa0af36820b4 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Wed, 4 Dec 2024 14:16:19 -0600 Subject: [PATCH 03/15] Add .releaserc blank file Signed-off-by: Andrew Brandt --- .releaserc | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .releaserc diff --git a/.releaserc b/.releaserc new file mode 100644 index 000000000000..e69de29bb2d1 From 0b412836bbbe936802c2cbd1baf7cd99d3bd62de Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 6 Dec 2024 13:19:52 -0600 Subject: [PATCH 04/15] Add very basic template releaserc file Signed-off-by: Andrew Brandt --- .releaserc | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.releaserc b/.releaserc index e69de29bb2d1..00b29bc0b93a 100644 --- a/.releaserc +++ b/.releaserc @@ -0,0 +1,54 @@ +{ + "branches": ["main", "develop", "semantic-release-workflow-update"], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits" + } + ], + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits" + } + ], + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/github", + { + "assets": [ + { + "path": "target/*.jar", + "label": "JAR Package" + }, + { + "path": "target/*.pom", + "label": "POM File" + } + ] + } + ], + [ + "semantic-release-maven", + { + "deploy": true, + "deployUrl": "https://oss.sonatype.org/service/local/staging/deploy/maven2/", + "repositoryId": "ossrh", + "gpgSign": true + } + ], + [ + "@semantic-release/git", + { + "assets": ["CHANGELOG.md", "pom.xml"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } + ] + ] +} From d197832ed8aa8dc8004986d147c8f5f1b63a43fa Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Mon, 9 Dec 2024 15:50:24 -0600 Subject: [PATCH 05/15] Modify releaserc file Signed-off-by: Andrew Brandt --- .releaserc | 83 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 46 insertions(+), 37 deletions(-) diff --git a/.releaserc b/.releaserc index 00b29bc0b93a..01fe327d2ee3 100644 --- a/.releaserc +++ b/.releaserc @@ -1,54 +1,63 @@ { - "branches": ["main", "develop", "semantic-release-workflow-update"], "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "conventionalcommits" - } - ], + "@semantic-release/commit-analyzer", [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits" } ], + "@semantic-release/git", + "@semantic-release/github" + ], + "verifyRelease": [ [ - "@semantic-release/changelog", - { - "changelogFile": "CHANGELOG.md" - } - ], - [ - "@semantic-release/github", - { - "assets": [ - { - "path": "target/*.jar", - "label": "JAR Package" - }, - { - "path": "target/*.pom", - "label": "POM File" - } - ] - } - ], + "@semantic-release/exec", + { "cmd": "echo ${nextRelease.version} > VERSION" } + ] + ], + "prepare": [ [ - "semantic-release-maven", - { - "deploy": true, - "deployUrl": "https://oss.sonatype.org/service/local/staging/deploy/maven2/", - "repositoryId": "ossrh", - "gpgSign": true - } + "@semantic-release/exec", + { "cmd": "./gradlew versionAsSpecified --scan -PnewVersion=${nextRelease.version}" } ], [ "@semantic-release/git", { - "assets": ["CHANGELOG.md", "pom.xml"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + "assets": [ + "gradle.properties" + ] } ] + ], + "branches":[ + { + "name": "main", "develop", "semantic-release-workflow-update" + }, + { + "name": "release/([0-9]+).([0-9]+)", + "channel": "${name.replace(/release\\//g, '').split('.')[0]}.${name.replace(/release\\//g, '').split('.')[1]}.x", + "range": "${name.replace(/release\\//g, '').split('.')[0]}.${name.replace(/release\\//g, '').split('.')[1]}.x" + }, + { + "name": "alpha/*", + "prerelease": "alpha", + "channel": "alpha" + }, + { + "name": "ci/*", + "prerelease": "alpha", + "channel": "alpha" + }, + { + "name": "beta/*", + "prerelease": "beta", + "channel": "beta" + }, + { + "name": "rc/*", + "prerelease": "rc", + "channel": "rc" + } ] -} +} \ No newline at end of file From 776cbb4dab056628fa67bf2d195eb69adfd19a2e Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Mon, 9 Dec 2024 15:51:15 -0600 Subject: [PATCH 06/15] Change from gradle.properties to version.txt Signed-off-by: Andrew Brandt --- .releaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index 01fe327d2ee3..9ee22fdafa19 100644 --- a/.releaserc +++ b/.releaserc @@ -25,7 +25,7 @@ "@semantic-release/git", { "assets": [ - "gradle.properties" + "version.txt" ] } ] From 733f13971da6ddac001279dab23c4f8b176334eb Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Wed, 11 Dec 2024 07:47:47 -0600 Subject: [PATCH 07/15] Update version to -SNAPSHOT for testing purposes Signed-off-by: Andrew Brandt --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 46448c71b9df..68f77c426364 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.57.0 +0.57.0-SNAPSHOT From 1fe8065c9f9905cd87d778f68baab5b199fa9901 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Mon, 16 Dec 2024 13:17:45 -0500 Subject: [PATCH 08/15] Update branch names, remove alpha beta ci and rc branch rules Signed-off-by: Andrew Brandt --- .releaserc | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.releaserc b/.releaserc index 9ee22fdafa19..9711287ab04e 100644 --- a/.releaserc +++ b/.releaserc @@ -32,32 +32,12 @@ ], "branches":[ { - "name": "main", "develop", "semantic-release-workflow-update" + "name": "semantic-release-workflow-update" }, { "name": "release/([0-9]+).([0-9]+)", "channel": "${name.replace(/release\\//g, '').split('.')[0]}.${name.replace(/release\\//g, '').split('.')[1]}.x", "range": "${name.replace(/release\\//g, '').split('.')[0]}.${name.replace(/release\\//g, '').split('.')[1]}.x" - }, - { - "name": "alpha/*", - "prerelease": "alpha", - "channel": "alpha" - }, - { - "name": "ci/*", - "prerelease": "alpha", - "channel": "alpha" - }, - { - "name": "beta/*", - "prerelease": "beta", - "channel": "beta" - }, - { - "name": "rc/*", - "prerelease": "rc", - "channel": "rc" } ] } \ No newline at end of file From 34e35204fe9d6d98506ff1476324e29de8281c93 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Thu, 19 Dec 2024 15:10:49 -0500 Subject: [PATCH 09/15] Remove releaserc.json file Signed-off-by: Andrew Brandt --- .releaserc.json | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json deleted file mode 100644 index a1cfff4b29e6..000000000000 --- a/.releaserc.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "branches": ["main", "develop", "semantic-release-workflow-update"], - "plugins": [ - ["@semantic-release/commit-analyzer", { - "preset": "conventional-commits", - "releaseRules": [ - {"type": "breaking", "release": "minor"}, - {"type": "feat", "release": "minor"}, - {"type": "fix", "release": "patch"}, - {"type": "docs", "release": "patch"}, - {"type": "style", "release": "patch"}, - {"type": "refactor", "release": "patch"}, - {"type": "perf", "release": "patch"}, - {"type": "test", "release": "patch"}, - {"type": "ci", "release": "patch"}, - {"type": "chore", "release": "patch"} - ], - "parserOpts": { - "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"] - } - }], - ["@semantic-release/release-notes-generator", { - "preset": "conventional-commits", - "presetConfig": { - "types": [ - {"type": "feat", "section": "Features"}, - {"type": "fix", "section": "Bug Fixes"}, - {"type": "docs", "section": "Documentation"}, - {"type": "style", "section": "Styles"}, - {"type": "refactor", "section": "Code Refactoring"}, - {"type": "perf", "section": "Performance Improvements"}, - {"type": "test", "section": "Tests"}, - {"type": "ci", "section": "Continuous Integration"}, - {"type": "chore", "section": "Chores"}, - {"type": "breaking", "section": "Breaking Changes"} - ] - } - }], - "@semantic-release/changelog", - "@semantic-release/npm", - "@semantic-release/github", - ["@semantic-release/git", { - "assets": ["package.json", "CHANGELOG.md"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - }] - ] -} \ No newline at end of file From 42b2802b7a53b84cae9d28141af5470819faa28e Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Thu, 19 Dec 2024 15:17:22 -0500 Subject: [PATCH 10/15] Update version.txt to 99.99.99-SNAPSHOT for testing Signed-off-by: Andrew Brandt --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index a60476bfe1c7..59d57f0e6440 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.58.0 +99.99.99-SNAPSHOT From 42274de52cc68afc3162517ed4f41557af5a09e5 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Thu, 19 Dec 2024 15:33:31 -0500 Subject: [PATCH 11/15] Add spotless fix Signed-off-by: Andrew Brandt --- .../node-zxc-build-release-artifact.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-zxc-build-release-artifact.yaml b/.github/workflows/node-zxc-build-release-artifact.yaml index 78cc55c99587..b64d4450524f 100644 --- a/.github/workflows/node-zxc-build-release-artifact.yaml +++ b/.github/workflows/node-zxc-build-release-artifact.yaml @@ -1,4 +1,19 @@ -# SPDX-License-Identifier: Apache-2.0 +## +# Copyright (C) 2024 Hedera Hashgraph, LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +## + name: "ZXC: [Node] Deploy Release Artifacts" on: workflow_call: From 86004cd71426f4c2ca35019ef7359f0aec884f2c Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 20 Dec 2024 11:05:38 -0500 Subject: [PATCH 12/15] Use official release version instead of SNAPSHOT version Signed-off-by: Andrew Brandt --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 59d57f0e6440..857e0684c4e3 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -99.99.99-SNAPSHOT +99.99.99 From 90528a5fee34aa0aa69aecf22727d2c3efcbd312 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 20 Dec 2024 13:08:41 -0500 Subject: [PATCH 13/15] Roll version of gradle build to 0.1.3 Signed-off-by: Andrew Brandt --- settings.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 0630c1461051..5982303982c9 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -14,7 +14,7 @@ * limitations under the License. */ -plugins { id("org.hiero.gradle.build") version "0.1.2" } +plugins { id("org.hiero.gradle.build") version "0.1.3" } javaModules { // This "intermediate parent project" should be removed From 5d91721dc34e8fd2822848e4c4ee3f152a5493f8 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 20 Dec 2024 14:36:24 -0500 Subject: [PATCH 14/15] Update gradle build to 0.1.4 Signed-off-by: Andrew Brandt --- settings.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index 5982303982c9..f1d55a92049b 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -14,7 +14,7 @@ * limitations under the License. */ -plugins { id("org.hiero.gradle.build") version "0.1.3" } +plugins { id("org.hiero.gradle.build") version "0.1.4" } javaModules { // This "intermediate parent project" should be removed From c432403d3e14d03d28dc8b7abcbeb1c375a36f32 Mon Sep 17 00:00:00 2001 From: Andrew Brandt Date: Fri, 20 Dec 2024 21:20:53 -0500 Subject: [PATCH 15/15] Roll version.txt back to 0.58.0 and change branch to "main" Signed-off-by: Andrew Brandt --- .releaserc | 2 +- version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.releaserc b/.releaserc index 9711287ab04e..9fdf24d0c498 100644 --- a/.releaserc +++ b/.releaserc @@ -32,7 +32,7 @@ ], "branches":[ { - "name": "semantic-release-workflow-update" + "name": "main" }, { "name": "release/([0-9]+).([0-9]+)", diff --git a/version.txt b/version.txt index 857e0684c4e3..a60476bfe1c7 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -99.99.99 +0.58.0