You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -172,7 +172,9 @@ jobs:
172
172
173
173
if [ "${CURRENT_LATEST}" = "${PACKAGE_VERSION}" ]; then
174
174
echo "Removing unintended latest tag from ${WORKSPACE_NAME}@${PACKAGE_VERSION}"
175
-
npm dist-tag rm "${WORKSPACE_NAME}" latest
175
+
if ! npm dist-tag rm "${WORKSPACE_NAME}" latest; then
176
+
echo "::warning::npm did not allow removing latest from ${WORKSPACE_NAME}. This is expected for a new package with no stable version yet; release verification will fail if a stable latest was overwritten."
177
+
fi
176
178
else
177
179
echo "Leaving ${WORKSPACE_NAME} latest tag unchanged (${CURRENT_LATEST:-missing})."
0 commit comments