Skip to content

Commit e4ee4dd

Browse files
committed
ci: switch release workflow to trusted publishing
Signed-off-by: Jérôme Benoit <[email protected]>
1 parent 89a0404 commit e4ee4dd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- 'v*'
66

77
permissions:
8+
id-token: write
89
contents: read
910

1011
jobs:
@@ -72,26 +73,26 @@ jobs:
7273
- name: Publish release
7374
run: pnpm publish --no-git-checks
7475
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
75-
env:
76-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
76+
# env:
77+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7778

7879
- name: Publish release candidate
7980
if: ${{ contains(steps.package-version.outputs.version, '-rc') == true }}
8081
run: pnpm publish --no-git-checks --tag next
81-
env:
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
82+
# env:
83+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8384

8485
- name: Publish beta release
8586
if: ${{ contains(steps.package-version.outputs.version, '-beta') == true }}
8687
run: pnpm publish --no-git-checks --tag beta
87-
env:
88-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
88+
# env:
89+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8990

9091
- name: Publish alpha release
9192
if: ${{ contains(steps.package-version.outputs.version, '-alpha') == true }}
9293
run: pnpm publish --no-git-checks --tag alpha
93-
env:
94-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
94+
# env:
95+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9596
changelog:
9697
runs-on: ubuntu-latest
9798
needs: publish-npm

0 commit comments

Comments
 (0)