From fe7e967b3639866fe60180af7ec780520672f4fa Mon Sep 17 00:00:00 2001 From: bradschwartz Date: Tue, 28 May 2024 17:04:12 -0700 Subject: [PATCH] bugfix: Set Version as Module Attribute for Release CI to Find Test with `echo PROJECT_VERSION=0.1.1` should generate properly --- CHANGELOG.md | 5 +++++ mix.exs | 3 ++- native/json_schema_nif/Cargo.toml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a9dd9e..b2e94df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.1.1] 2024-05-28 + +Fix bug where `version` key needed to be set as module attribute `@version` +for `sed` to find it. + ## [0.1.0] - 2024-05-15 Initial release. diff --git a/mix.exs b/mix.exs index a4f81db..b98d95d 100644 --- a/mix.exs +++ b/mix.exs @@ -1,6 +1,7 @@ defmodule JsonSchemaNif.MixProject do use Mix.Project + @version "0.1.1" @project_url "https://github.com/podium/json_schema_nif" def project do @@ -8,7 +9,7 @@ defmodule JsonSchemaNif.MixProject do app: :json_schema_nif, name: "JSON Schema NIF", description: "A JSON Schema Validator via NIF bindings to Rust", - version: "0.1.0", + version: @version, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: deps(), diff --git a/native/json_schema_nif/Cargo.toml b/native/json_schema_nif/Cargo.toml index d99e97d..3d6392c 100644 --- a/native/json_schema_nif/Cargo.toml +++ b/native/json_schema_nif/Cargo.toml @@ -2,7 +2,7 @@ authors = [] edition = "2021" name = "json_schema_nif" - version = "0.1.0" + version = "0.1.1" [lib] crate-type = ["cdylib", "lib"]