From 5bf33bebcac92b0637a432744c3f62f3514d5225 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Wed, 3 Dec 2025 14:00:15 +0000 Subject: [PATCH] Use Trusted Publishing --- .github/workflows/ci.yml | 3 +++ .github/workflows/publish.yml | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1dd7d9..7d58f4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: Javascript SDK tests +permissions: + contents: read + on: push: branches: [main] diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ac74cf..b550ecb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,9 @@ name: Publish to NPM + +permissions: + contents: read + id-token: write # for IODC + on: release: types: [published] @@ -13,6 +18,4 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run build:dist - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --provenance --access public