Skip to content

Commit 665edc4

Browse files
Add auth with crates.io step
1 parent 84fa901 commit 665edc4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-plz.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release-plz
1+
name: Publish release
22

33
on:
44
push:
@@ -19,17 +19,19 @@ jobs:
1919
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 0
22-
persist-credentials: true
23-
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
2422
- &install-rust
2523
name: Install Rust toolchain
2624
uses: dtolnay/rust-toolchain@stable
25+
- name: Authenticate to crates.io
26+
uses: rust-lang/crates-io-auth-action@v1
27+
id: auth
2728
- name: Run release-plz
2829
uses: release-plz/[email protected]
2930
with:
3031
command: release
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
34+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
3335

3436
release-plz-pr:
3537
name: Release-plz PR

0 commit comments

Comments
 (0)