From c65c627bbb7f81f240a371d04641451e87e02e29 Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Wed, 14 Jan 2026 14:37:12 +0200 Subject: [PATCH 1/4] fix: revert release version and set up for testing Signed-off-by: PavelSBorisov --- .../flow-deploy-release-artifact.yaml | 111 ++++++++++-------- .releaserc | 3 + package-lock.json | 4 +- package.json | 2 +- 4 files changed, 65 insertions(+), 55 deletions(-) diff --git a/.github/workflows/flow-deploy-release-artifact.yaml b/.github/workflows/flow-deploy-release-artifact.yaml index 5d11e953a..3a1042752 100644 --- a/.github/workflows/flow-deploy-release-artifact.yaml +++ b/.github/workflows/flow-deploy-release-artifact.yaml @@ -207,57 +207,64 @@ jobs: run: | npm pack --pack-destination ./dist - # Upload the artifact - - name: Upload Hiero CLI Package Artifact - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 - with: - name: cli-npm-package - path: ./dist/${{ steps.set-publish-data.outputs.artifact-name }} - if-no-files-found: error - - - name: Deploy to JFrog Registry - if: ${{ github.event.inputs.dry-run-enabled != 'true' && !cancelled() && !failure() }} - run: jf npm publish - - # Add a publishing job for Hiero CLI to npmjs - publish-npm-package: - name: Publish Hiero CLI NPM Package - runs-on: ubuntu-latest - needs: - - create-github-release - steps: - - name: Harden Runner - uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 - with: - egress-policy: audit - - - name: Checkout Code - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - with: - fetch-depth: 1 - - - name: Setup Node - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 - with: - node-version: 22 - registry-url: 'https://registry.npmjs.org' - - - name: Install NPM latest - run: npm install -g npm@11.7.0 - - name: Download Hiero CLI NPM Package Artifact - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 - with: - name: cli-npm-package - - - name: Publish Hiero CLI NPM Package + - name: Verify Release run: | - args="--access=public" - if [[ "${{ inputs.dry-run-enabled }}" == "true" ]]; then - args="${args} --dry-run" - fi - - package="${{ needs.create-github-release.outputs.npm-artifact-name }}" - echo "::group::Publishing package: ${package} with args: ${args}" - npm publish ${package} ${args} - echo "::endgroup::" + echo "Expected package name: ${{ steps.set-publish-data.outputs.artifact-name }}" + echo "Dist dir files:" + ls -la ./dist + + # # Upload the artifact + # - name: Upload Hiero CLI Package Artifact + # uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + # with: + # name: cli-npm-package + # path: ./dist/${{ steps.set-publish-data.outputs.artifact-name }} + # if-no-files-found: error + + # - name: Deploy to JFrog Registry + # if: ${{ github.event.inputs.dry-run-enabled != 'true' && !cancelled() && !failure() }} + # run: jf npm publish + + # # Add a publishing job for Hiero CLI to npmjs + # publish-npm-package: + # name: Publish Hiero CLI NPM Package + # runs-on: ubuntu-latest + # needs: + # - create-github-release + # steps: + # - name: Harden Runner + # uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 + # with: + # egress-policy: audit + + # - name: Checkout Code + # uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + # with: + # fetch-depth: 1 + + # - name: Setup Node + # uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 + # with: + # node-version: 22 + # registry-url: 'https://registry.npmjs.org' + + # - name: Install NPM latest + # run: npm install -g npm@11.7.0 + + # - name: Download Hiero CLI NPM Package Artifact + # uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 + # with: + # name: cli-npm-package + + # - name: Publish Hiero CLI NPM Package + # run: | + # args="--access=public" + # if [[ "${{ inputs.dry-run-enabled }}" == "true" ]]; then + # args="${args} --dry-run" + # fi + + # package="${{ needs.create-github-release.outputs.npm-artifact-name }}" + # echo "::group::Publishing package: ${package} with args: ${args}" + # npm publish ${package} ${args} + # echo "::endgroup::" diff --git a/.releaserc b/.releaserc index 7b279ccd2..a60579417 100644 --- a/.releaserc +++ b/.releaserc @@ -79,6 +79,9 @@ "name": "rc/*", "prerelease": "rc", "channel": "rc" + }, + { + "name": "semantic-release-issues" } ] } diff --git a/package-lock.json b/package-lock.json index 25b27382b..35accd608 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hiero-ledger/hiero-cli", - "version": "0.10.0", + "version": "0.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hiero-ledger/hiero-cli", - "version": "0.10.0", + "version": "0.9.1", "license": "Apache-2.0", "dependencies": { "@clack/prompts": "0.11.0", diff --git a/package.json b/package.json index 422cda547..3beeee16e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hiero-ledger/hiero-cli", - "version": "0.10.0", + "version": "0.9.1", "description": "CLI tool to manage and setup developer environments for Hiero-Ledger.", "main": "hiero-cli.js", "target": "esnext", From 51b68fe29631a25d72eadcda8250439797970fb4 Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Wed, 14 Jan 2026 15:20:18 +0200 Subject: [PATCH 2/4] chore: set version correctly for testing Signed-off-by: PavelSBorisov --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 35accd608..25b27382b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hiero-ledger/hiero-cli", - "version": "0.9.1", + "version": "0.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hiero-ledger/hiero-cli", - "version": "0.9.1", + "version": "0.10.0", "license": "Apache-2.0", "dependencies": { "@clack/prompts": "0.11.0", diff --git a/package.json b/package.json index 3beeee16e..422cda547 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hiero-ledger/hiero-cli", - "version": "0.9.1", + "version": "0.10.0", "description": "CLI tool to manage and setup developer environments for Hiero-Ledger.", "main": "hiero-cli.js", "target": "esnext", From d1fb996799b5a9d732d1b5801d86c40ae019dabf Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Thu, 15 Jan 2026 10:22:07 +0200 Subject: [PATCH 3/4] chore: debugging Signed-off-by: PavelSBorisov --- .../workflows/flow-deploy-release-artifact.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/flow-deploy-release-artifact.yaml b/.github/workflows/flow-deploy-release-artifact.yaml index 3a1042752..97bd6ca76 100644 --- a/.github/workflows/flow-deploy-release-artifact.yaml +++ b/.github/workflows/flow-deploy-release-artifact.yaml @@ -52,6 +52,7 @@ jobs: - name: Checkout Code uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: + token: ${{ secrets.GH_ACCESS_TOKEN }} fetch-depth: 0 - name: Setup Node @@ -67,8 +68,7 @@ jobs: - name: Calculate Next Version env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} GIT_AUTHOR_NAME: ${{ secrets.GIT_USER_NAME }} GIT_AUTHOR_EMAIL: ${{ secrets.GIT_USER_EMAIL }} GIT_COMMITTER_NAME: ${{ secrets.GIT_USER_NAME }} @@ -177,9 +177,20 @@ jobs: - name: Compile Code run: npm run build + - name: GH Auth Status (without ENV) + run: gh auth status + + - name: GH Auth Status (with ENV) + env: + GITHUB_TOKEN: ${{ secrets.GH_ACCESS_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: gh auth status + - name: Publish Semantic Release env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} GIT_AUTHOR_NAME: ${{ secrets.GIT_USER_NAME }} GIT_AUTHOR_EMAIL: ${{ secrets.GIT_USER_EMAIL }} From 56b131fd5c68e9a9ee342dbe70d61faa617ab776 Mon Sep 17 00:00:00 2001 From: PavelSBorisov Date: Thu, 15 Jan 2026 10:29:38 +0200 Subject: [PATCH 4/4] fix: more debugging Signed-off-by: PavelSBorisov --- .github/workflows/flow-deploy-release-artifact.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/flow-deploy-release-artifact.yaml b/.github/workflows/flow-deploy-release-artifact.yaml index 97bd6ca76..d61fa6825 100644 --- a/.github/workflows/flow-deploy-release-artifact.yaml +++ b/.github/workflows/flow-deploy-release-artifact.yaml @@ -177,9 +177,6 @@ jobs: - name: Compile Code run: npm run build - - name: GH Auth Status (without ENV) - run: gh auth status - - name: GH Auth Status (with ENV) env: GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}