From 3e181fc116c125e18ec0d51d03cc4ee1c8d58064 Mon Sep 17 00:00:00 2001 From: Vladimir Babin Date: Fri, 14 Aug 2026 05:10:30 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20Release=20workflow=20(Node=2022)=20?= =?UTF-8?q?+=20changeset=20for=20witness=E2=86=92validator=20types?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Release workflow failed on every push to main: it runs `npm install -g npm@latest`, which now resolves npm@12 requiring Node >=22, while the job pinned Node 20 (EBADENGINE, exit 1) — so the merged type fix never published. Bump the release job to Node 22 so npm@latest installs and the OIDC Trusted Publisher path works. Also add the missing changeset so Changesets bumps @viz-cx/api and the already-merged read-path type fix actually gets released. --- .changeset/witness-validator-read-types.md | 10 ++++++++++ .github/workflows/release.yml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/witness-validator-read-types.md diff --git a/.changeset/witness-validator-read-types.md b/.changeset/witness-validator-read-types.md new file mode 100644 index 0000000..e357b60 --- /dev/null +++ b/.changeset/witness-validator-read-types.md @@ -0,0 +1,10 @@ +--- +"@viz-cx/api": patch +--- + +Fix read-path types for the viz-cpp-node witness→validator migration. The +site API now emits `current_validator` (was `current_witness`) on `GET /`, +and `validators_voted_for` / `validator_votes` (were `witnesses_voted_for` / +`witness_votes`) on `GET /profile/{user}`. The new field names are now the +primary types; the old names are retained as `@deprecated` aliases for +consumers still reading from older nodes. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7c9995..de3c286 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: with: { version: 10.34.4 } - uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Upgrade npm for OIDC Trusted Publisher support run: npm install -g npm@latest