From 7a94c16b4a0b38a1f3a478e57307822336a1c0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Guti=C3=A9rrez?= Date: Tue, 1 Dec 2026 15:52:49 +0100 Subject: [PATCH] ci: publish to npm with trusted publishing --- .github/workflows/publish.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9196ce34..ab95d234 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,10 +5,10 @@ on: jobs: build: runs-on: ubuntu-latest + environment: npm-publish permissions: contents: read id-token: write - packages: write steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 @@ -28,10 +28,5 @@ jobs: - name: Build run: npm run build - - name: Set the NPM registry with token - run: | - echo "registry=https://registry.npmjs.org/" > .npmrc - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc - - name: Publish on NPM run: npm publish --scope=@internxt --access public