Skip to content

Commit b1e122e

Browse files
committed
Update npm-publish.yml
1 parent 6ea30cd commit b1e122e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/npm-publish.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010

11+
12+
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@v2
@@ -16,6 +18,7 @@ jobs:
1618
uses: actions/setup-node@v2
1719
with:
1820
node-version: '14'
21+
registry-url: https://registry.npmjs.org/
1922

2023
- name: Install dependencies
2124
run: npm ci
@@ -24,6 +27,4 @@ jobs:
2427
env:
2528
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2629

27-
run: |
28-
echo "$(jq '.publishConfig.registry = "https://registry.npmjs.org"' package.json)" > package.json
29-
npm publish --access public
30+
run: npm publish --access public

0 commit comments

Comments
 (0)