From 523e8109be768a1836ce3921ba1f26642b46b098 Mon Sep 17 00:00:00 2001 From: Andrew Wilkinson Date: Mon, 23 Nov 2026 16:21:09 +0000 Subject: [PATCH] chore(release): 0.5.0-rc.0 on the rc dist-tag --- .github/workflows/publish.yml | 13 ++++++++++++- CHANGELOG.md | 4 +++- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 331d68f..2bda3b6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,4 +23,15 @@ jobs: package-manager-cache: false - run: npm ci - run: npm run check - - run: npm publish --access public + - name: Choose the npm dist-tag from the version + id: tag + run: | + version="$(node -p "require('./package.json').version")" + # A prerelease (X.Y.Z-id.N) publishes on its first identifier, never latest. + case "$version" in + *-*) prerelease="${version#*-}"; tag="${prerelease%%.*}" ;; + *) tag=latest ;; + esac + echo "Publishing $version on $tag" + echo "tag=$tag" >> "$GITHUB_OUTPUT" + - run: npm publish --access public --tag "${{ steps.tag.outputs.tag }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 088a5a0..4251ea4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -## Unreleased +## 0.5.0-rc.0 + +Release candidate on the npm `rc` tag; `latest` stays 0.4.1 during the soak. - Run every Peer Cash MCP tool on `peer.sell` from `@zkp2p/sdk` 0.16.0-rc.2, including the Relay source tools (`peer_cash_source_capabilities`, diff --git a/package-lock.json b/package-lock.json index f7f1537..1744cae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "peer-protocol-cli", - "version": "0.4.1", + "version": "0.5.0-rc.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "peer-protocol-cli", - "version": "0.4.1", + "version": "0.5.0-rc.0", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.30.0", diff --git a/package.json b/package.json index 0c820c2..3863394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "peer-protocol-cli", - "version": "0.4.1", + "version": "0.5.0-rc.0", "mcpName": "io.github.zkp2p/peer", "description": "Agent-first CLI and MCP server for the Peer (ZKP2P) protocol and Peer Cash", "bin": {