mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 21:29:01 +00:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Prepare Release Crates
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: taiki-e/checkout-action@v1
|
|
- uses: Boshen/setup-rust@main
|
|
with:
|
|
cache-key: warm
|
|
tools: cargo-release-oxc
|
|
- run: cargo ck
|
|
- run: cargo release-oxc publish --release crates --dry-run
|
|
|
|
prepare:
|
|
needs: check
|
|
name: Prepare Release Crates
|
|
uses: ./.github/workflows/reusable_prepare_release.yml
|
|
with:
|
|
name: crates
|
|
secrets:
|
|
OXC_BOT_PAT: ${{ secrets.OXC_BOT_PAT }}
|
|
|
|
ecosystem-ci:
|
|
needs: prepare
|
|
name: Trigger Monitor Oxc
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: taiki-e/checkout-action@v1
|
|
|
|
- uses: peter-evans/create-or-update-comment@v4
|
|
id: comment
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
issue-number: ${{ needs.prepare.outputs.pull-request-number }}
|
|
body: Triggering Monitor Oxc https://github.com/oxc-project/monitor-oxc/actions/workflows/ci.yml
|
|
|
|
- uses: benc-uk/workflow-dispatch@v1
|
|
with:
|
|
repo: oxc-project/monitor-oxc
|
|
workflow: ci.yml
|
|
token: ${{ secrets.OXC_BOT_PAT }}
|
|
ref: main
|
|
inputs: '{ "issue-number": "${{ needs.prepare.outputs.pull-request-number }}", "comment-id": "${{ steps.comment.outputs.comment-id }}" }'
|