Skip to content

Commit fd55a8c

Browse files
pepicrftclaude
andcommitted
fix: configure NPM authentication properly in release workflow
- Add step to create ~/.npmrc with auth token before publishing - Fix repository URL format in package.json to match NPM standards - This fixes the ENEEDAUTH error preventing NPM package publication 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0cba6f9 commit fd55a8c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,15 @@ jobs:
288288
- name: Install dependencies
289289
run: pnpm install
290290

291+
- name: Configure NPM authentication
292+
run: |
293+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
294+
291295
- name: Publish to NPM
292296
run: |
293297
cd packages/metro
294298
npm version ${{ needs.check-release.outputs.new_version }} --no-git-tag-version
295299
npm publish --access public
296-
env:
297-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
298300
299301
create-release:
300302
name: Create GitHub Release

packages/metro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/tuist/fabrik.git",
22+
"url": "git+https://github.com/tuist/fabrik.git",
2323
"directory": "packages/metro"
2424
},
2525
"author": "Tuist",

0 commit comments

Comments
 (0)