Skip to content

Commit 4a978c7

Browse files
committed
fixup publish package publish
1 parent 6dd8eba commit 4a978c7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Publish the package to nuget.org
6161
if: github.event_name == 'release' && github.event.action == 'created'
6262
shell: pwsh
63-
run: dotnet nuget push "$((Resolve-Path packages/*.nupkg).Path)" -k ${{secrets.NUGET_TOKEN}} --skip-duplicate
63+
run: dotnet nuget push "$((Resolve-Path packages/*.nupkg).Path)" -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json
6464

6565
publish-npm-package:
6666
needs: test
@@ -99,11 +99,8 @@ jobs:
9999
- name: Configure npmjs package registry
100100
if: github.event_name == 'release' && github.event.action == 'created'
101101
shell: pwsh
102-
run: Set-Content -Path '.npmrc' -Value 'registry=https://registry.npmjs.org'
102+
run: Set-Content -Path '.npmrc' -Value "${{ secrets.NPMJS_NPMRC }}"
103103

104104
- name: Publish npm package to Npmjs package registry
105105
shell: pwsh
106-
run: npm publish "$((Resolve-Path packages/*.tgz).Path)" --access public
107-
if: github.event_name == 'release' && github.event.action == 'created'
108-
env:
109-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
106+
run: npm publish "$((Resolve-Path packages/*.tgz).Path)" --access public --registry https://registry.npmjs.org/

0 commit comments

Comments
 (0)