Skip to content

Commit 84e2816

Browse files
authored
use latest npm to publish (#596)
1 parent 94e7a42 commit 84e2816

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,13 @@ jobs:
257257
with:
258258
name: release-build
259259
path: _release/
260+
- name: Update npm
261+
run: npm install -g npm@latest
260262
- name: Publish to npm with tag ${{ github.event.inputs.tag_name }}
261263
if: ${{ github.event.inputs.tag_name }}
262264
working-directory: _release
263-
run: yarn publish --tag ${{ github.event.inputs.tag_name }}
265+
run: npm publish --tag ${{ github.event.inputs.tag_name }}
264266
- name: Publish to npm with tag latest
265267
if: ${{ !github.event.inputs.tag_name }}
266268
working-directory: _release
267-
run: yarn publish
269+
run: npm publish

0 commit comments

Comments
 (0)