From e7e8d9210cb14e5b3b60a28913e86ccc00216996 Mon Sep 17 00:00:00 2001 From: Eli Zibin <1131641+zibs@users.noreply.github.com> Date: Wed, 27 Aug 2025 08:46:14 -0700 Subject: [PATCH] chore: migrate to OIDC publishing for npm releases - Add OIDC trusted publishing support - Remove npm token and optic-token dependencies - Add production environment and required permissions - Update to publish-mode: oidc This migration eliminates the need for npm tokens and provides enhanced security through GitHub's identity provider. --- .github/workflows/release.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3608250..38df825 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ on: jobs: release: runs-on: ubuntu-latest + environment: production permissions: contents: write issues: write @@ -25,13 +26,7 @@ jobs: steps: - uses: nearform-actions/optic-release-automation-action@v4 with: - npm-token: >- - ${{ secrets[format('NPM_TOKEN_{0}', github.actor)] || - secrets.NPM_TOKEN }} - optic-token: >- - ${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] || - secrets.OPTIC_TOKEN }} + publish-mode: oidc semver: ${{ github.event.inputs.semver }} commit-message: 'chore: release {version}' build-command: npm ci - provenance: true