From 3af3d526bc88b5c3cb593ee5165f481a499fd8b5 Mon Sep 17 00:00:00 2001 From: Nastassia Fulconis Date: Thu, 6 Nov 2025 08:40:34 -0800 Subject: [PATCH 1/2] fix: manually configure .npmrc for npm authentication - Remove registry-url from setup-node (causes conflicts) - Add explicit .npmrc configuration step with NPM_TOKEN - Matches pattern from working type-graphql release workflow --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e9955be..6c35ea4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' - registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -33,6 +32,12 @@ jobs: - name: Build run: npm run build + - name: Configure npm authentication + run: | + echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 @@ -43,3 +48,4 @@ jobs: title: 'chore: version packages' env: GITHUB_TOKEN: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 90f9a0e60c77812425a4fda3e5c125334d2e9798 Mon Sep 17 00:00:00 2001 From: Nastassia Fulconis Date: Thu, 6 Nov 2025 08:46:47 -0800 Subject: [PATCH 2/2] chore: add changeset for npm auth fix --- .changeset/fix-npm-auth.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-npm-auth.md diff --git a/.changeset/fix-npm-auth.md b/.changeset/fix-npm-auth.md new file mode 100644 index 0000000..a0548fd --- /dev/null +++ b/.changeset/fix-npm-auth.md @@ -0,0 +1,5 @@ +--- +"@scope3/agentic-client": patch +--- + +Fix npm authentication in release workflow by manually configuring .npmrc file