chore: add oxc_release.toml

This commit is contained in:
Boshen 2024-06-04 13:25:00 +08:00
parent 591c54bd31
commit ebd683bb4b
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 16 additions and 4 deletions

View file

@ -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 <Boshen@users.noreply.github.com>
branch: release/crates
branch-suffix: timestamp
title: Publish crates
title: Publish crates v${{ steps.run.outputs.VERSION }}
body: Automated Release
assignees: Boshen
reviewers: Boshen

8
oxc_release.toml Normal file
View file

@ -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"
]