Skip to content

Commit 7e8645e

Browse files
committed
ci(release): enable trusted publishing
1 parent 4cfcf5d commit 7e8645e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/release-plz.yml renamed to .github/workflows/release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,30 @@ jobs:
1919
permissions:
2020
pull-requests: write
2121
contents: write
22+
id-token: write
2223
steps:
2324
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2425
with:
2526
fetch-depth: 0
2627
token: ${{ secrets.OXC_BOT_PAT }}
2728
persist-credentials: true # required by release-plz
2829

29-
- name: Run release-plz
30+
- uses: dorny/paths-filter@v3
31+
id: changes
32+
with:
33+
filters: |
34+
src:
35+
- 'Cargo.toml'
36+
- '**/Cargo.toml'
37+
38+
- uses: rust-lang/crates-io-auth-action@v1
39+
if: steps.changes.outputs.src == 'true'
40+
id: auth
41+
42+
- uses: release-plz/action@ccf6dd998441f26020f4315f1ebe95d9e2e42600 # v0.5.110
3043
id: release-plz
31-
uses: release-plz/action@ccf6dd998441f26020f4315f1ebe95d9e2e42600 # v0.5.110
3244
env:
3345
GITHUB_TOKEN: ${{ secrets.OXC_BOT_PAT }}
34-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3546

3647
- name: Bump package.json
3748
if: ${{ steps.release-plz.outputs.prs_created }}

0 commit comments

Comments
 (0)