From 47c246c453d7532151af89283f192032c72252ec Mon Sep 17 00:00:00 2001 From: DanielMevit Date: Thu, 25 Jun 2026 09:17:56 +0200 Subject: [PATCH] fix(ci): resolve npm publish OIDC conflict and token fallback --- .github/workflows/build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71f8b467..1cbbe5b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -159,7 +159,6 @@ jobs: - uses: actions/setup-node@v6 with: node-version: '22.15.1' - registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - name: Ensure npm supports trusted publishing run: npm install -g npm@^11.5.1 @@ -168,9 +167,9 @@ jobs: - name: Publish runpane to npm with token fallback if: ${{ env.NPM_TOKEN != '' }} working-directory: packages/runpane - env: - NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }} - run: npm publish --access public + run: | + echo "//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}" > .npmrc + npm publish --access public - name: Publish runpane to npm with trusted publishing if: ${{ env.NPM_TOKEN == '' }} working-directory: packages/runpane