Skip to content

Commit c1ad098

Browse files
committed
Fixed publishing to npmjs.org
1 parent aa2037b commit c1ad098

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ jobs:
4444
force_orphan: true
4545
publish_dir: docs
4646
cname: typescript.typedrest.net
47+
- name: Connect to registry (npmjs.com)
48+
if: github.event_name == 'push' && steps.gitversion.outputs.preReleaseLabel == ''
49+
uses: actions/setup-node@v1
50+
with:
51+
registry-url: https://registry.npmjs.org
4752
- name: Publish packages (npmjs.com)
4853
if: github.event_name == 'push' && steps.gitversion.outputs.preReleaseLabel == ''
4954
run: npm publish --access public
5055
env:
5156
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5257

5358
# Publish
54-
- name: Connect to GitHub Packages
59+
- name: Connect to registry (GitHub)
5560
if: github.event_name == 'push'
5661
uses: actions/setup-node@v1
5762
with:

0 commit comments

Comments
 (0)