Skip to content

Commit dce6b6a

Browse files
authored
Enable Trusted Publishing (#5302)
1 parent 0bc558c commit dce6b6a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ on:
1414
description: 'Is Prerelease'
1515
type: boolean
1616
default: false
17-
17+
permissions:
18+
id-token: write
19+
contents: read
20+
1821
jobs:
1922
version:
2023
outputs:
@@ -288,8 +291,6 @@ jobs:
288291
LATEST_COMPATIBILITY_DATE: ${{ needs.version.outputs.date }}
289292
- run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > npm/workerd/.npmrc
290293
- run: cd npm/workerd && npm publish --access public --tag ${{ startsWith(needs.version.outputs.version, '0') && 'beta' || 'latest'}}
291-
env:
292-
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
293294

294295
build-and-publish-types:
295296
runs-on: ubuntu-22.04
@@ -320,5 +321,3 @@ jobs:
320321
- run: cp npm/workers-types/oldest/* npm/workers-types
321322
- run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > npm/workers-types/.npmrc
322323
- run: cd npm/workers-types && npm publish --access public --tag ${{ startsWith(needs.version.outputs.version, '0') && 'beta' || 'latest'}}
323-
env:
324-
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)