ci: add release crates workflow

closes #2518
This commit is contained in:
Boshen 2024-05-08 22:30:36 +08:00
parent 15f275f572
commit be2aaa1d7e
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1
2 changed files with 22 additions and 2 deletions

View file

@ -1,7 +1,5 @@
name: Release CLI
# When main is pushed and npm/oxc/package.json has been changed,
# trigger the jobs after the ci workflow has been passed.
on:
push:
branches:

22
.github/workflows/release_crates.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Release Crates
on:
push:
branches:
- main
paths:
- crates/oxc/Cargo.toml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
name: Release crates
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall --no-confirm cargo-release-oxc
- run: cargo release-oxc publish