|
50 | 50 | WASMSTATICCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSTATICCLIENT_APPSETTINGS_PRODUCTION }} |
51 | 51 | WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOSTCLIENT_APPSETTINGS_PRODUCTION }} |
52 | 52 | WASMSERVERHOST_APPSETTINGS_PRODUCTION: ${{ secrets.WASMSERVERHOST_APPSETTINGS_PRODUCTION }} |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | -####### qqqq |
60 | | - # 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 |
90 | | - # set +e |
91 | | - |
92 | | - # SEMVER_OUTPUT_RAW=$(npx semantic-release) |
93 | | - # echo "Raw SEMVER_OUTPUT_RAW=$SEMVER_OUTPUT_RAW" |
94 | | - |
95 | | - # SEMVER_OUTPUT=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Published release \K[^\s]+') |
96 | | - |
97 | | - # # 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" |
113 | | - # fi |
114 | | - |
115 | | - # # Export the result to the environment |
116 | | - # echo "SEMVER_OUTPUT=$SEMVER_OUTPUT" >> $GITHUB_ENV |
117 | | - # set -e |
118 | | -################ |
119 | | - |
120 | | - |
121 | | - |
122 | 53 |
|
123 | 54 | # Now we've done due diligence |
124 | 55 | # The checks have been allowed to run if the workflow fails so if there a multiple fails we know. |
|
0 commit comments