From 159aa341cc2b76ab551f779539d23d7b662e4acb Mon Sep 17 00:00:00 2001 From: Rafael Mestre Date: Thu, 28 Aug 2025 20:57:38 -0400 Subject: [PATCH 1/3] chore: force npm publish --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45224b2d..b37d8783 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: run: shellcheck scripts/*.sh build-and-test: + if: false needs: shellcheck strategy: fail-fast: false @@ -58,3 +59,30 @@ jobs: - run: npm run build - run: npm test - run: npm run test:e2e + + npm-publish: + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' + + # Clean build for npm publishing + - run: npm ci + - run: npm run build + + # Dry run NPM publish + - name: Dry run NPM publish + run: npm publish --tag ${{ needs.check-version.outputs.oclif_channel }} --provenance --access public --dry-run + env: + NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} + + # NPM Release + - name: Create NPM release + run: npm publish --tag ${{ needs.check-version.outputs.oclif_channel }} --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} \ No newline at end of file From ea52d024f569faa21c28021488ce564fe2c5dea6 Mon Sep 17 00:00:00 2001 From: Rafael Mestre Date: Thu, 28 Aug 2025 20:59:43 -0400 Subject: [PATCH 2/3] chore: hardcode version --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b37d8783..373308c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,12 +77,12 @@ jobs: # Dry run NPM publish - name: Dry run NPM publish - run: npm publish --tag ${{ needs.check-version.outputs.oclif_channel }} --provenance --access public --dry-run + run: npm publish --tag 2.0.0-beta.5 --provenance --access public --dry-run env: NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} # NPM Release - name: Create NPM release - run: npm publish --tag ${{ needs.check-version.outputs.oclif_channel }} --provenance --access public + run: npm publish --tag 2.0.0-beta.5 --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} \ No newline at end of file From 77825f5abafdc3d6f2039df911197044d8aaa17a Mon Sep 17 00:00:00 2001 From: Rafael Mestre Date: Thu, 28 Aug 2025 21:04:29 -0400 Subject: [PATCH 3/3] chore: type not number --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 373308c6..5522aa5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,12 +77,12 @@ jobs: # Dry run NPM publish - name: Dry run NPM publish - run: npm publish --tag 2.0.0-beta.5 --provenance --access public --dry-run + run: npm publish --tag beta --provenance --access public --dry-run env: NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} # NPM Release - name: Create NPM release - run: npm publish --tag 2.0.0-beta.5 --provenance --access public + run: npm publish --tag beta --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} \ No newline at end of file