Skip to content

Commit fa88241

Browse files
committed
refactor: simplify .npmrc setup for npm publishing
1 parent b50c85c commit fa88241

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,10 @@ jobs:
4646
- name: Build package
4747
run: bun run build
4848

49-
- name: Setup .npmrc file for publishing
50-
uses: actions/setup-node@v4
51-
with:
52-
node-version: '20'
53-
registry-url: 'https://registry.npmjs.org'
54-
scope: '@dolphfi_'
55-
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
- name: Create .npmrc file
50+
run: |
51+
echo "@dolphfi_:registry=https://registry.npmjs.org/" > ./.npmrc
52+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ./.npmrc
5753
5854
- name: Publish to npm
5955
run: bunx publint && bun publish --no-git-checks

0 commit comments

Comments
 (0)