Skip to content

Commit

Permalink
ci: add release crates workflow
Browse files Browse the repository at this point in the history
closes #2518
  • Loading branch information
Boshen committed May 8, 2024
1 parent 15f275f commit be2aaa1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release_crates.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit be2aaa1

Please sign in to comment.