diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 242f611..f4c3b8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,6 +57,9 @@ jobs: deploy-sdk-to-npm: needs: [build, define-gcs-versions-to-update] runs-on: ubuntu-22.04 + permissions: + id-token: write + contents: read steps: - name: Checkout code uses: actions/checkout@v4 @@ -80,13 +83,8 @@ jobs: - name: Setup pnpm uses: ./.github/actions/setup-pnpm - - name: Setup registry access - run: | - echo '@optable:registry=https://registry.npmjs.org/' > ~/.npmrc - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_CI_ACCESS_TOKEN }}" >> ~/.npmrc - - - name: Publish to NPM - run: pnpm publish --access public --no-git-checks + - name: Publish to NPM using OIDC + run: pnpm publish --provenance --access public --no-git-checks deploy-sdk-to-gcs: needs: [deploy-sdk-to-npm, define-gcs-versions-to-update] diff --git a/package.json b/package.json index 870d34a..721c0a7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "browser": "./lib/dist/sdk.js", "repository": { "type": "git", - "url": "git+https://github.com/optable/optable-web-sdk.git" + "url": "git+https://github.com/Optable/optable-web-sdk.git" }, "homepage": "https://optable.co", "license": "SEE LICENSE IN LICENSE",