From be177a727569a95edbd92ad0f24688dc34a4812a Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Wed, 12 Nov 2025 22:06:42 +0000 Subject: [PATCH] chore: enable trusted publish --- .github/workflows/publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 369fced..eb1add6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,15 +28,12 @@ jobs: node-version: 22.x registry-url: 'https://registry.npmjs.org' cache: 'npm' + - run: npm i -g npm@latest - run: npm ci - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.ref_name }} - run: npm publish --provenance --access public --tag next if: "github.event.release.prerelease" - env: - NODE_AUTH_TOKEN: ${{ secrets.npm_secret }} - run: npm publish --provenance --access public if: "!github.event.release.prerelease" - env: - NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}