Skip to content

Commit 843f8a9

Browse files
Update npm in the same step publication occurs
1 parent 396989d commit 843f8a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,6 @@ jobs:
363363
- build-macos
364364
- build-windows
365365
steps:
366-
- name: Update npm # required to support npm trusted publishing
367-
run: |
368-
sudo npm install -g npm@latest
369-
npm --version
370366
- name: Checkout repo
371367
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
372368
with:
@@ -424,5 +420,6 @@ jobs:
424420
run: ./build-scripts/add-os-restrictions.js
425421
- name: Publish packages to npm
426422
run: |
423+
sudo npm install -g npm@latest
427424
npm --version
428425
yarn publish-packages

0 commit comments

Comments
 (0)