Skip to content

Commit aad9d2b

Browse files
committed
build: implement trusted publishing
1 parent 41a4859 commit aad9d2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
permissions:
7272
contents: write # Required for git push and creating tags
7373
pull-requests: write # Required for creating pull requests
74+
id-token: write
7475
steps:
7576
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
7677
with:
@@ -90,6 +91,9 @@ jobs:
9091
cache: 'yarn'
9192
cache-dependency-path: 'yarn.lock'
9293

94+
- name: Install latest npm
95+
run: npm install -g npm@latest
96+
9397
- name: Install Dependencies
9498
run: yarn install --immutable
9599

@@ -98,7 +102,6 @@ jobs:
98102

99103
- name: Setup Publish Config
100104
run: |
101-
yarn config set npmAuthToken "${{ secrets.NPM_TOKEN }}"
102105
git config user.email ${{ secrets.GH_EMAIL }}
103106
git config user.name ${{ secrets.GH_USER }}
104107

0 commit comments

Comments
 (0)