Skip to content

Commit 00f4522

Browse files
committed
release: bump to 0.18.6 and sync npm package version in release workflow
v0.18.5 release partially succeeded (GitHub release, crates.io, Swift Package.swift update) but the npm and Android→GH Packages publish jobs failed. The Kotlin bindings issues are fixed on main, so retry as 0.18.6. Additionally, typescript/package.json previously carried a hardcoded "0.18.0" that the release workflow never updated, so every run would have attempted to publish the wrong version. Add a "Sync package.json version" step that runs npm version with the dispatch input before building/publishing.
1 parent 46f7b58 commit 00f4522

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,10 @@ jobs:
779779
- name: Install wasm-pack
780780
run: cargo install wasm-pack --locked || true
781781

782+
- name: Sync package.json version
783+
working-directory: typescript
784+
run: npm version "${{ needs.prepare-release.outputs.version }}" --no-git-tag-version --allow-same-version
785+
782786
- name: Build TypeScript package
783787
working-directory: typescript
784788
run: |

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cooklang"
3-
version = "0.18.5"
3+
version = "0.18.6"
44
edition = "2021"
55
authors = ["Zheoni <zheoni@outlook.es>"]
66
description = "Cooklang parser with opt-in extensions"

bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cooklang-bindings"
3-
version = "0.18.5"
3+
version = "0.18.6"
44
edition = "2021"
55
authors = ["dubadub <dubovskoy.a@gmail.com>"]
66
description = "Cooklang Uniffi bindings"

typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cooklang/cooklang",
3-
"version": "0.18.0",
3+
"version": "0.18.6",
44
"license": "MIT",
55
"description": "Official Cooklang parser - Rust-powered WASM implementation for high performance recipe parsing",
66
"type": "module",

0 commit comments

Comments
 (0)