Skip to content

Commit 9485286

Browse files
authored
Merge pull request #30 from TechnologyEnhancedLearning/feat-graceful-chore-first
chore(test): cake
2 parents ff33e69 + d344e81 commit 9485286

File tree

3 files changed

+7
-29
lines changed

3 files changed

+7
-29
lines changed

.github/workflows/dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
if [ -z "$SEMVER_OUTPUT" ]; then
155155
SEMVER_OUTPUT=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Found git tag v\K[^\s]+')
156156
fi
157-
157+
echo "if using git tag it will just be last made so not guaranteed to be the same branch but ok for now"
158158
# Export the result to the environment
159159
echo "SEMVER_OUTPUT=$SEMVER_OUTPUT" >> $GITHUB_ENV
160160
set -e
@@ -168,9 +168,9 @@ jobs:
168168
timestamp=$(date +"%y%m%d-%H%M")
169169
echo "Timestamp $timestamp"
170170
171-
echo "shouldnt timestamp but ok for now qqqq"
172-
echo "if you get a tag like 1.1.1-timestamp or :-nonversion-triggering-change it just means there was a chore before "
173-
full_version="${SEMVER_OUTPUT:-nonversion-triggering-change}-${timestamp}"
171+
echo "shouldnt timestamp but ok for now"
172+
echo "If it is nonversion triggering change and the first on the branch will get the release version because it is the most recent tag"
173+
full_version="${SEMVER_OUTPUT}-${timestamp}"
174174
echo "extracted version $full_version"
175175
echo "dev-semantic-version=$full_version" >> $GITHUB_OUTPUT
176176

.github/workflows/release.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,37 +65,15 @@ jobs:
6565
env:
6666
github_token: ${{ secrets.github_token }}
6767
run: |
68+
set +e
6869
SEMVER_VERSION=$(npx semantic-release | grep -oP 'Published release \K[\d.]+')
6970
echo "semantic-release-version=$SEMVER_VERSION" >> $GITHUB_OUTPUT
7071
7172
# Check if SEMVER_VERSION is empty and echo the message if so
7273
if [ -z "$SEMVER_VERSION" ]; then
7374
echo "Changes do not warrant a version change. gh_pages and packages won't be updated."
7475
fi
75-
# qqqq are we versioning the whole repo not just the branch???
76-
# - name: Run Semantic Version (None Blocking)
77-
# env:
78-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79-
# PACKAGES_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
80-
# run: |
81-
# set +e
82-
# SEMVER_OUTPUT_RAW=$(npx semantic-release)
83-
# echo "Raw SEMVER_OUTPUT_RAW=$SEMVER_OUTPUT_RAW"
84-
85-
# SEMVER_OUTPUT=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Published release \K[^\s]+')
86-
87-
# # In dev even if there is no version change we will package and update the website, this means it will for ci which isnt necessary
88-
# # but also if we squash a load of commits we will still get the package updated
89-
# echo "In dev even if there is no version change we will package and update the website, this means it will for ci which isnt necessary but also if we squash a load of commits we will still get the package updated"
90-
91-
# STATUS=$?
92-
# if [ -z "$SEMVER_OUTPUT" ]; then
93-
# SEMVER_OUTPUT=$(echo "$SEMVER_OUTPUT_RAW" | grep -oP 'Found git tag v\K[^\s]+')
94-
# fi
95-
96-
# # Export the result to the environment
97-
# echo "SEMVER_OUTPUT=$SEMVER_OUTPUT" >> $GITHUB_ENV
98-
# set -e
76+
set -e
9977
10078

10179
build-bcl-package-and-publish:

Package.BlazorComponentLibrary/Components/SimpleCounter.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h3>Simple Counter</h3>
22
Feat123
33
<button class="btn btn-primary" @onclick="IncrementCount">
4-
A Build aa(@currentCount)
4+
A Build aaa(@currentCount)
55
</button>
66

77
@code {

0 commit comments

Comments
 (0)