From ebd683bb4b0b5630988f55d94cc5feecfe79efb8 Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 4 Jun 2024 13:25:00 +0800 Subject: [PATCH] chore: add oxc_release.toml --- .github/workflows/prepare_release_crates.yml | 12 ++++++++---- oxc_release.toml | 8 ++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 oxc_release.toml diff --git a/.github/workflows/prepare_release_crates.yml b/.github/workflows/prepare_release_crates.yml index 5d39c765b..5a4c27492 100644 --- a/.github/workflows/prepare_release_crates.yml +++ b/.github/workflows/prepare_release_crates.yml @@ -24,14 +24,18 @@ jobs: with: fetch-depth: 0 - - uses: cargo-bins/cargo-binstall@main - - uses: Boshen/setup-rust@main with: cache-key: warm tools: cargo-release-oxc - - run: cargo release-oxc update --patch + - run: cargo ck + + - name: Run + id: run + run: | + VERSION=`cargo release-oxc update --release crates` + echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT - uses: peter-evans/create-pull-request@v6 with: @@ -41,7 +45,7 @@ jobs: author: Boshen branch: release/crates branch-suffix: timestamp - title: Publish crates + title: Publish crates v${{ steps.run.outputs.VERSION }} body: Automated Release assignees: Boshen reviewers: Boshen diff --git a/oxc_release.toml b/oxc_release.toml new file mode 100644 index 000000000..9256ae562 --- /dev/null +++ b/oxc_release.toml @@ -0,0 +1,8 @@ +# Configuration file for [cargo release oxc](https://github.com/oxc-project/cargo-release-oxc) +[[releases]] +name = "crates" +versioned_files = [ + "Cargo.toml", + "npm/oxc-parser/package.json", + "wasm/parser/package.json" +]