Skip to content

Commit 5f73358

Browse files
authored
ci(publish): only update npm if necessary (#2574)
1 parent bf58b3c commit 5f73358

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ jobs:
664664
run: |
665665
yarn nx release --dry-run
666666
- name: Update npm if <11.5.1
667+
if: ${{ github.ref == 'refs/heads/trunk' }}
667668
run: |
668669
if [[ "$(echo -e "11.5.1\n$(npm --version)" | sort --version-sort | head -n 1)" != "11.5.1" ]]; then
669670
npm install -g [email protected]

0 commit comments

Comments
 (0)