Skip to content

Commit

Permalink
ci: add release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Mar 26, 2024
1 parent 243131d commit c5ccd5e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Rust Toolchain
uses: ./.github/actions/rustup
with:
save-cache: ${{ github.ref_name == 'main' }}

- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
12 changes: 12 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[workspace]
semver_check = false
changelog_update = false # disable the changelog for all packages
git_release_enable = false # Disable git releases for all packages by default
git_tag_enable = false # Disable git tags for all packages by default

[[package]]
name = "oxc"
changelog_update = true # enable the changelog for this package
changelog_path = "./CHANGELOG.md"
git_tag_enable = true # Enable git tags for this package
git_release_enable = true # Enable git releases for this package

0 comments on commit c5ccd5e

Please sign in to comment.