Skip to content

Commit 3693f6b

Browse files
committed
chore: set up github repo as trusted publisher
1 parent 27500ce commit 3693f6b

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.changeset/afraid-monkeys-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-loqate': patch
3+
---
4+
5+
set up a trusted publisher

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
timeout-minutes: 15
3838
runs-on: ubuntu-latest
3939
if: github.ref == 'refs/heads/main'
40+
permissions:
41+
id-token: write
42+
contents: write
43+
pull-requests: write
44+
environment: release
4045
needs: lint-test-build
4146
steps:
4247
- name: Checkout
@@ -69,6 +74,9 @@ jobs:
6974
restore-keys: |
7075
${{ runner.os }}-pnpm-store-
7176
77+
- name: Upgrade npm for trusted publishing
78+
run: npm i -g npm@^11.6.4
79+
7280
- name: Create and publish versions
7381
uses: changesets/action@v1
7482
with:
@@ -77,5 +85,4 @@ jobs:
7785
publish: pnpm publish:ci
7886
env:
7987
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
88+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)