diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8956130..54e8f44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,23 +21,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Get the release version from the tag - shell: bash - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true - - - name: Install Rust - run: rustup target add ${{ matrix.target }} - - - name: Bump version to the tag - run: cargo workspaces version $VERSION --all --no-git-push --no-git-tag --yes - - uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f2dceaa --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,9 @@ +# Publishing a new version + +When looking to publish a new version, we can bump all the individual versions of the crates with + +``` +cargo workspaces version patch --all --no-git-push --no-git-tag --allow-branch "*" +``` + +This ensures that the workspaces have the right versioning diff --git a/instructor/Cargo.toml b/instructor/Cargo.toml index 8dc55c0..ba3c83c 100644 --- a/instructor/Cargo.toml +++ b/instructor/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "instructor-ai" +version = "0.1.8" edition = "2021" authors = ["Ivan Leo "] description = "instructor-ai is a simple crate that allows for users to do validated structured outputs" @@ -13,10 +14,10 @@ changelog = "CHANGELOG.md" [dependencies] instruct-macros = { path = "../instruct-macros", version = "0.*" } -instruct-macros-types = { path = "../instruct-macros-types", version = "0.*" } openai-api-rs = "4.1.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" +instruct-macros-types = { path = "../instruct-macros-types", version = "0.*" } [lib] name = "instructor_ai"