File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191
9292info " Starting the release process"
9393
94+ # Step 0: Check npm authentication
95+ if [ -z " $RELEASE_DRY_RUN " ]; then
96+ retry_step " Check npm authentication" "
97+ if npm whoami > /dev/null 2>&1; then
98+ echo \" ✓ npm authentication verified\"
99+ else
100+ echo \" ✗ You appear to not be logged in to npm\"
101+ echo \" Please run 'npm login' (in a new terminal) to authenticate with npm\"
102+ echo \" Press Enter after logging in, or 'q' to quit\"
103+ read -r response
104+ if [ \"\$ response\" = \" q\" ] || [ \"\$ response\" = \" Q\" ]; then
105+ echo \" Release aborted by user\"
106+ exit 1
107+ fi
108+ npm whoami > /dev/null 2>&1
109+ fi
110+ "
111+ else
112+ info " dry mode -- skipping npm authentication check"
113+ fi
114+
94115# Step 1: Install
95116retry_step " make install" " make install"
96117
204225
205226# Step 10: Publish packages
206227if [ -z " $RELEASE_DRY_RUN " ]; then
207- retry_step " Publish packages" " ./node_modules/.bin/lerna publish --no-verify-access from-package"
228+ retry_step " Publish packages" " ./node_modules/.bin/lerna publish from-package"
208229else
209230 info " dry mode -- skipping lerna publish"
210231fi
You can’t perform that action at this time.
0 commit comments