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
# 0 not exclusively due to no version bump so check output
61
-
# dry release seems not to error 1 qqqq!
62
-
# if [ "${STATUS:-0}" -ne 0 ]; then
63
-
# echo "in if status 0"
64
-
# if echo "$SEMVER_OUTPUT_RAW" | grep -q "There are no relevant changes"; then
65
-
# echo "in if no release published"
66
-
# # No new version, but we can find the current version
67
-
# echo "No new version required getting current version from git tags"
68
-
# DEV_SEMVER_VERSION=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0-version-not-found") # last git tag so if multiple bumps in other branches making package version there will be some discrepancy but the purpose is distinguishing them for dev purposes.
69
-
# echo "DEV_SEMVER_VERSION = $DEV_SEMVER_VERSION"
70
-
# exit 0 # treat as success code didnt fail there just was no version increment required
71
-
# else
72
-
# echo "in else no release published"
73
-
# exit $STATUS # real error → fail pipeline
74
-
# fi
75
-
# else
76
-
# # Get version include prerelease tag
77
-
# # Dry run returns different text DEV_SEMVER_VERSION=$(echo "$OUTPUT" | grep -oP 'Published release \K[^\s]+')
78
-
# echo "in else so status was zero for error"
79
-
# DEV_SEMVER_VERSION=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Dry run: would publish version \K[^\s]+')
80
-
# echo "DEV_SEMVER_VERSION = $DEV_SEMVER_VERSION"
81
-
# echo "version change required true"
82
-
# # Just because weve been handling errors
83
-
# exit 0
84
-
# fi
85
-
86
-
87
-
# qqqq - name: Run semantic version (None Blocking)
88
-
# run: |
89
-
# # If no version is required we can get an error so here we handle it
# # In development, we always package and update the website—even if there’s no version change.
98
-
# # This ensures the CI process runs consistently and the latest code is deployed.
99
-
# # It's especially useful when squashing commits, as it guarantees the package is still rebuilt and published.
100
-
# echo "Packaging and updating the website in development, even without version changes, to ensure consistent CI behavior and updated packages after squashed commits."
101
-
102
-
# STATUS=$?
103
-
# if [ -z "$SEMVER_OUTPUT" ]; then
104
-
# SEMVER_OUTPUT=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Found git tag v\K[^\s]+')
105
-
# # Note: If Semver falls back to using a Git tag, it will pick the most recent one.
106
-
# # This tag may not belong to the current branch, so the result isn't guaranteed to reflect the latest changes on this branch.
107
-
# echo "Semver fallback: using latest Git tag, which may not be from the current branch."
108
-
# fi
109
-
110
-
# if [ -z "$SEMVER_OUTPUT" ]; then
111
-
# SEMVER_OUTPUT="0.0.0"
112
-
# echo "No semantic version or tag, defaulting to 0.0.0 $SEMVER_OUTPUT"
0 commit comments