Skip to content

Commit 6a4bf4a

Browse files
committed
ci: added npm token
1 parent 1ca8a79 commit 6a4bf4a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ jobs:
1515
uses: pnpm/action-setup@v4
1616
with:
1717
version: latest
18-
run_install: false
19-
20-
- name: Dependencies
21-
run: pnpm install
18+
run_install: true
2219

2320
- name: Build
2421
run: tsc
@@ -29,4 +26,8 @@ jobs:
2926
- name: Publish
3027
env:
3128
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32-
run: cd dist && pnpm publish --access public --no-git-checks
29+
run: |
30+
cd dist
31+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
32+
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
33+
pnpm publish --access public --no-git-checks

0 commit comments

Comments
 (0)