Skip to content

Commit e15204c

Browse files
committed
chore: workflow problem
1 parent 4b32312 commit e15204c

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,6 @@ jobs:
3636
cache-dependency-path: './common/config/rush/pnpm-lock.yaml'
3737
registry-url: 'https://registry.npmjs.org'
3838

39-
- name: Ensure npm >= 11.5.1 (conditional)
40-
run: |
41-
set -e
42-
NPMV=$(npm -v)
43-
echo "Current npm version: $NPMV"
44-
REQ_MAJOR=11
45-
REQ_MINOR=5
46-
REQ_PATCH=1
47-
MAJOR=${NPMV%%.*}
48-
REST=${NPMV#*.}
49-
MINOR=${REST%%.*}
50-
PATCH=${REST#*.}
51-
needs_upgrade=false
52-
if [ "$MAJOR" -lt "$REQ_MAJOR" ]; then
53-
needs_upgrade=true
54-
elif [ "$MAJOR" -eq "$REQ_MAJOR" ]; then
55-
if [ "$MINOR" -lt "$REQ_MINOR" ]; then
56-
needs_upgrade=true
57-
elif [ "$MINOR" -eq "$REQ_MINOR" ] && [ "$PATCH" -lt "$REQ_PATCH" ]; then
58-
needs_upgrade=true
59-
fi
60-
fi
61-
if [ "$needs_upgrade" = true ]; then
62-
echo "npm < 11.5.1 detected, installing pinned npm@11.5.1 for Trusted Publishing"
63-
npm install -g npm@11.5.1
64-
echo "npm upgraded to: $(npm -v)"
65-
else
66-
echo "npm version satisfies requirement (>= 11.5.1)"
67-
fi
68-
6939
- name: Print All Github Environment Variables
7040
run: env
7141

0 commit comments

Comments
 (0)