From d5661b4eb00a936afa6df7746f2178472d922c81 Mon Sep 17 00:00:00 2001 From: Alexander Batista Date: Thu, 25 Jun 2026 02:03:32 -0400 Subject: [PATCH] feat(release): publish uipro-cli to npm on release semantic-release currently only creates GitHub releases/tags, so npm has been stuck on 2.2.3 while tags advanced to v2.7.0. `uipro init` / `uipro update` users therefore receive stale 2.2.3-era assets (issue #353). Add @semantic-release/npm (pkgRoot: cli) to the release pipeline so each release also publishes the uipro-cli package at the tagged version. The package's prepublishOnly already re-syncs cli/assets from the source of truth, so the published tarball always carries current assets. Requires a repo secret NPM_TOKEN (npm automation token with publish rights to uipro-cli). Addresses #353 (npm-publish slice of the release lane; leaving the issue open until the full distribution path lands, per maintainer). --- .github/workflows/release.yml | 2 ++ .releaserc.json | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4917b925f..2ce9f2595 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,11 +52,13 @@ jobs: - name: Run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | npx --yes \ -p semantic-release \ -p @semantic-release/commit-analyzer \ -p @semantic-release/release-notes-generator \ + -p @semantic-release/npm \ -p @semantic-release/github \ -p conventional-changelog-conventionalcommits \ semantic-release diff --git a/.releaserc.json b/.releaserc.json index 770e4080c..f3c552b0b 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -21,6 +21,12 @@ "preset": "conventionalcommits" } ], + [ + "@semantic-release/npm", + { + "pkgRoot": "cli" + } + ], [ "@semantic-release/github", {