Skip to content

Commit ee7a9b9

Browse files
Add support to npmrc
1 parent b07791e commit ee7a9b9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish_to_npm.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ jobs:
1818
with:
1919
node-version: 18.x
2020
cache: "pnpm"
21+
registry-url: https://registry.npmjs.org
22+
23+
- name: Verify version
24+
run: echo ${{ github.event.release.tag_name }}
25+
26+
- name: Setup NPM
27+
run: echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2128

2229
- run: pnpm install
2330
- run: pnpm run build
2431
- run: pnpm publish --access public --no-git-checks
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)