Release crates v0.22.0 (#4417) #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Crates | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- crates/oxc/Cargo.toml | |
permissions: | |
contents: write | |
actions: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
release: | |
name: Release crates | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} # required for git tag push | |
- uses: Boshen/setup-rust@main | |
with: | |
cache-key: warm | |
tools: cargo-release-oxc | |
- run: cargo ck | |
- name: Run | |
id: run | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: | | |
cargo release-oxc publish --release crates | |
echo "TAG=$(cat ./target/OXC_VERSION)" >> $GITHUB_OUTPUT | |
- name: Tag and Push | |
run: | | |
git tag ${{ steps.run.outputs.TAG }} | |
git push origin tag ${{ steps.run.outputs.TAG }} |