Prepare Release Crates #9
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: Prepare Release Crates | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
pull-requests: write | |
contents: write | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
prepare_release: | |
name: Prepare Release Crates | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: Boshen/setup-rust@main | |
with: | |
cache-key: warm | |
tools: cargo-release-oxc | |
- 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: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Publish crates | |
committer: Boshen <Boshen@users.noreply.github.com> | |
author: Boshen <Boshen@users.noreply.github.com> | |
branch: release/crates | |
branch-suffix: timestamp | |
title: Publish crates v${{ steps.run.outputs.VERSION }} | |
body: Automated Release | |
assignees: Boshen | |
reviewers: Boshen |