|
@@ -77,30 +77,30 @@ jobs:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
steps:
|
|
|
- name: Git checkout
|
|
- name: Git checkout
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
uses: actions/checkout@v4
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup Environment
|
|
- name: Setup Environment
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
uses: ./.github/actions/setup
|
|
uses: ./.github/actions/setup
|
|
|
with:
|
|
with:
|
|
|
cargo-cache-key: cargo-publish-semver-${{ inputs.package_path }}
|
|
cargo-cache-key: cargo-publish-semver-${{ inputs.package_path }}
|
|
|
cargo-cache-fallback-key: cargo-publish-semver
|
|
cargo-cache-fallback-key: cargo-publish-semver
|
|
|
|
|
|
|
|
- name: Install cargo-semver-checks
|
|
- name: Install cargo-semver-checks
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
uses: taiki-e/install-action@v2
|
|
uses: taiki-e/install-action@v2
|
|
|
with:
|
|
with:
|
|
|
tool: cargo-semver-checks,cargo-release
|
|
tool: cargo-semver-checks,cargo-release
|
|
|
|
|
|
|
|
- name: Set Git Author (required for cargo-release)
|
|
- name: Set Git Author (required for cargo-release)
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
run: |
|
|
run: |
|
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.name "github-actions[bot]"
|
|
|
|
|
|
|
|
- name: Set Version
|
|
- name: Set Version
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
run: |
|
|
run: |
|
|
|
if [ "${{ inputs.level }}" == "version" ]; then
|
|
if [ "${{ inputs.level }}" == "version" ]; then
|
|
|
LEVEL=${{ inputs.version }}
|
|
LEVEL=${{ inputs.version }}
|
|
@@ -110,7 +110,7 @@ jobs:
|
|
|
cargo release $LEVEL --manifest-path "${{ inputs.package_path }}/Cargo.toml" --no-tag --no-publish --no-push --no-confirm --execute
|
|
cargo release $LEVEL --manifest-path "${{ inputs.package_path }}/Cargo.toml" --no-tag --no-publish --no-push --no-confirm --execute
|
|
|
|
|
|
|
|
- name: Check semver
|
|
- name: Check semver
|
|
|
- if: ${{ inputs.package_path != "clients/cli" }}
|
|
|
|
|
|
|
+ if: ${{ inputs.package_path != 'clients/cli' }}
|
|
|
run: pnpm rust:semver --manifest-path "${{ inputs.package_path }}/Cargo.toml"
|
|
run: pnpm rust:semver --manifest-path "${{ inputs.package_path }}/Cargo.toml"
|
|
|
|
|
|
|
|
publish:
|
|
publish:
|