forked from oxc-project/oxc
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 992 Bytes
/
release_crates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
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 }}