From 53bf2ebf108f685af0480033b24ca968daec82e2 Mon Sep 17 00:00:00 2001 From: Tobi Lutke Date: Sun, 15 Feb 2026 14:59:09 -0400 Subject: [PATCH] ci: use npm trusted publishing (OIDC) instead of token --- .github/workflows/publish.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c716816..c01bba1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,7 @@ jobs: permissions: contents: write + id-token: write steps: - uses: actions/checkout@v4 @@ -29,9 +30,7 @@ jobs: node-version: 22 registry-url: https://registry.npmjs.org - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --provenance --access public - name: Create GitHub Release env: