diff --git a/.github/actions/publish/publish-rust/action.yml b/.github/actions/publish/publish-rust/action.yml index 2aff014242..c19319ac9b 100644 --- a/.github/actions/publish/publish-rust/action.yml +++ b/.github/actions/publish/publish-rust/action.yml @@ -21,11 +21,12 @@ runs: - name: Install cargo-release shell: bash - run: cargo install --version =0.20.1 cargo-release + run: cargo install --version =0.25 cargo-release - name: Publish library to crates.io shell: bash run: | echo "dry-run: '${{ inputs.dry-run }}'" echo "version: '${{ inputs.version }}'" - cargo release --workspace --token ${{ inputs.crates-token }} --isolated --no-dev-version --no-push --no-tag --dependent-version error --verbose $(if [ "${{ inputs.dry-run }}" = "false" ]; then echo --execute --no-confirm; fi) ${{ inputs.version }} + cargo login ${{ inputs.crates-token }} + cargo release --workspace --isolated --no-dev-version --no-push --no-tag --dependent-version error --verbose $(if [ "${{ inputs.dry-run }}" = "false" ]; then echo --execute --no-confirm; fi) ${{ inputs.version }}