From f062905c32dcb251a1b1be1808910f9e7cc1446b Mon Sep 17 00:00:00 2001 From: thedavidmeister Date: Tue, 12 May 2026 23:32:07 +0400 Subject: [PATCH] chore: re-sync Cargo.toml with crates.io + use PUBLISH_PRIVATE_KEY rain-math-float 0.1.1-alpha.2 was published to crates.io by the Cargo Crate Release workflow after #208 landed, but the post-publish push of the version-bump commit was rejected by branch protection: "remote: error: GH013: Repository rule violations found for refs/heads/main." The npm release workflow uses PUBLISH_PRIVATE_KEY which is the deploy key configured with the bypass; my workflow was using PUBLISHER_SSH_KEY (copied from rain.wasm) which doesn't have bypass on this repo. Swap the SSH key secret in cargo-publish.yaml to match npm release. Bump crates/float/Cargo.toml to 0.1.1-alpha.2 to re-sync with crates.io so cargo-release computes the next bump from the right baseline (0.1.1-alpha.3). Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/cargo-publish.yaml | 2 +- Cargo.lock | 2 +- crates/float/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cargo-publish.yaml b/.github/workflows/cargo-publish.yaml index d6af11d..c09611a 100644 --- a/.github/workflows/cargo-publish.yaml +++ b/.github/workflows/cargo-publish.yaml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - ssh-key: ${{ secrets.PUBLISHER_SSH_KEY }} + ssh-key: ${{ secrets.PUBLISH_PRIVATE_KEY }} - uses: nixbuild/nix-quick-install-action@v30 with: nix_conf: | diff --git a/Cargo.lock b/Cargo.lock index 1cfdbf7..ec0df6b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3168,7 +3168,7 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rain-math-float" -version = "0.1.1-alpha.1" +version = "0.1.1-alpha.2" dependencies = [ "alloy", "anyhow", diff --git a/crates/float/Cargo.toml b/crates/float/Cargo.toml index 41b2bcf..0bba9f1 100644 --- a/crates/float/Cargo.toml +++ b/crates/float/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rain-math-float" -version = "0.1.1-alpha.1" +version = "0.1.1-alpha.2" edition = "2021" license = "LicenseRef-DCL-1.0" description = "Decimal floating-point arithmetic for Rainlang / DeFi smart contracts. Packs a 224-bit signed coefficient and 32-bit signed exponent into a single bytes32, with exact decimal semantics (no NaN, Infinity, or negative zero — operations error on nonsense). Rust bindings delegate to the Solidity reference via an in-memory EVM so on-chain and off-chain results match exactly."