Skip to content

Commit 921e694

Browse files
authored
chore: Switch to trusted publishing (#1517)
Switch to the trusted publishing of crates to crates.io instead of using the manual token managed through secrets.
1 parent e899721 commit 921e694

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release-plz.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ jobs:
4141
with:
4242
toolchain: stable
4343

44+
- uses: rust-lang/crates-io-auth-action@v1
45+
id: auth
46+
4447
- name: Run release-plz
4548
uses: MarcoIeni/release-plz-action@7419a2cb1535b9c0e852b4dec626967baf65c022 # v0.5.102
4649
env:
4750
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
48-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
51+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)