From c0a21038222f5636b29c5f34b33f404d8663e683 Mon Sep 17 00:00:00 2001 From: Lotus CI Date: Sat, 12 Sep 2026 14:36:05 -0400 Subject: [PATCH] ci(lotus): publish prereleases under the `lotus` dist-tag Run #1861 built fine but `npm publish` refused: "You must specify a tag using --tag when publishing a prerelease version" (npm 11 rule). Add `--tag lotus`; cinny pins exact versions so the dist-tag is only a namespace. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA --- .gitea/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e57bce54..29dd278a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -177,8 +177,12 @@ jobs: TAG="${GITHUB_REF_NAME#v}" # v0.20.1-lotus.1 -> 0.20.1-lotus.1 npm version "$TAG" --no-git-tag-version --allow-same-version + # `--tag lotus`: npm >= 11 refuses to publish a prerelease (x.y.z-lotus.N) + # without an explicit dist-tag (run #1861). cinny pins exact versions, so + # the dist-tag is only a namespace — it keeps `latest` pointing at the + # last upstream-parity publish. - name: Publish working-directory: embedded/web env: NODE_AUTH_TOKEN: ${{ secrets.GITEA_NPM_TOKEN }} - run: npm publish --access public + run: npm publish --access public --tag lotus