Skip to content

chore: reset version to 1.0.0 for release-plz #74

chore: reset version to 1.0.0 for release-plz

chore: reset version to 1.0.0 for release-plz #74

Workflow file for this run

name: Release-plz
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
jobs:
# Release unpublished packages.
release-plz-release:
name: Release-plz release
runs-on: macos-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and release-plz
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin/release-plz
key: ${{ runner.os }}-cargo-release-plz-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-release-plz-
- name: Install release-plz
run: command -v release-plz || cargo install release-plz
- name: Run release-plz
run: release-plz release --git-token ${{ secrets.GITHUB_TOKEN }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
name: Release-plz PR
runs-on: macos-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry and release-plz
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin/release-plz
key: ${{ runner.os }}-cargo-release-plz-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-release-plz-
- name: Install release-plz
run: command -v release-plz || cargo install release-plz
- name: Run release-plz
run: release-plz release-pr --git-token ${{ secrets.GITHUB_TOKEN }}