mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 13:48:55 +00:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Release Crates
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
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
|
|
permissions:
|
|
contents: write
|
|
actions: write
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
with:
|
|
token: ${{ secrets.OXC_BOT_PAT }} # required for git tag push
|
|
persist-credentials: true
|
|
|
|
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0
|
|
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
|
|
env:
|
|
TAG_NAME: ${{ steps.run.outputs.TAG }}
|
|
run: |
|
|
git tag ${TAG_NAME}
|
|
git push origin tag ${TAG_NAME}
|