Skip to content

Commit 677fb0c

Browse files
committed
Update publish-npm.yml
1 parent 2a72438 commit 677fb0c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ jobs:
4141
runs-on: ubuntu-latest
4242
permissions:
4343
contents: read
44+
id-token: write # Required for OIDC token exchange
4445
steps:
4546
- uses: actions/checkout@v4
46-
47-
- name: Install Rust
48-
uses: dtolnay/rust-toolchain@stable
47+
- uses: rust-lang/crates-io-auth-action@v1
48+
id: auth
4949

5050
- name: Publish server crate
5151
run: cargo publish -p bizi-server
5252
env:
53-
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
53+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
5454

5555
publish-client:
5656
needs: [resolve-release-set]

0 commit comments

Comments
 (0)