Skip to content

Commit 049fe9c

Browse files
authored
Update js-release.yml
publish to npm using trusted publishing
1 parent 610e764 commit 049fe9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/js-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
env:
1313
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
1414

15+
permissions:
16+
id-token: write
17+
contents: read
18+
1519
jobs:
1620
release:
1721
name: Release
@@ -41,6 +45,4 @@ jobs:
4145
title: 'build(i18nify): update version'
4246
- name: Publish to public npm registry
4347
if: steps.changesets.outputs.published == 'true' || github.event_name == 'workflow_dispatch' # run when the package is published via changeset or if a release is triggered manually.
44-
env:
45-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
4648
run: yarn publish-npm

0 commit comments

Comments
 (0)