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