From 785d796ccd0aea611e680d2758308ab489b8ddd6 Mon Sep 17 00:00:00 2001 From: zach Date: Thu, 11 Apr 2024 15:53:18 -0700 Subject: [PATCH] chore: prepare clients for 0.3.0 release (#19) * chore: bump client version * cleanup(ci): require VERSION argument to `make release` * chore(ci): use ocaml 5.1 for releases --- .github/workflows/release.yml | 11 +++++++++-- Makefile | 2 +- client/js/package.json | 2 +- client/python/pyproject.toml | 2 +- client/rust/Cargo.toml | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce34c59..3ee8f2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,7 +41,14 @@ jobs: ocaml-compiler: '${{ matrix.ocaml-compiler }}' - run: opam install . --deps-only -y - name: 'Make release' - run: opam exec -- make release TARGET=${{ matrix.target }} + run: | + version="${{ github.ref }}" + if [[ "$version" = "refs/heads/main" ]]; then + version="main" + else + version="${version/refs\/tags\/v/}" + fi + opam exec -- make release VERSION=${version} TARGET=${{ matrix.target }} - name: Upload Artifact to Release uses: softprops/action-gh-release@v1 with: @@ -52,7 +59,7 @@ jobs: fail-fast: true matrix: ocaml-compiler: - - 5.0.0 + - 5.1 os: - macos-latest - ubuntu-latest diff --git a/Makefile b/Makefile index d86af15..276c14f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PREFIX?=/usr/local -VERSION=0.2 +VERSION?=main TARGET?=$(shell uname -m) UNAME_S:=$(shell uname -s | tr '[:upper:]' '[:lower:]') ifeq ($(UNAME_S),darwin) diff --git a/client/js/package.json b/client/js/package.json index e8a98ec..df15453 100644 --- a/client/js/package.json +++ b/client/js/package.json @@ -1,6 +1,6 @@ { "name": "@dylibso/wasmstore", - "version": "0.2.0", + "version": "0.3.0", "description": "Wasmstore client", "main": "wasmstore.js", "scripts": { diff --git a/client/python/pyproject.toml b/client/python/pyproject.toml index ad2c7b0..8b3ae87 100644 --- a/client/python/pyproject.toml +++ b/client/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "wasmstore" -version = "0.2.0" +version = "0.3.0" description = "Wasmstore client for Python" authors = ["Dylibso "] license = "BSD-3-Clause" diff --git a/client/rust/Cargo.toml b/client/rust/Cargo.toml index 94d4027..53bc39b 100644 --- a/client/rust/Cargo.toml +++ b/client/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wasmstore-client" -version = "0.2.0" +version = "0.3.0" edition = "2021" description = "Wasmstore client" authors = ["Dylibso Inc", "oss@dylibso.com"]