Commit 41e9433
authored
chore(ci): assert tags are bare version numbers (no
ShellSyntaxTree convention: release tags are SemVer version numbers
verbatim — no decoration. Example: `0.1.0-alpha`, NOT `v0.1.0-alpha`.
The tag value IS the package version.
publish_nuget.yml changes:
- Trigger broadened to `tags: ['*']` so the workflow fires on ANY tag
push; mistakes show up in CI rather than silently no-op-ing.
- New first step "Assert tag is a bare version number":
* fails fast with a clear ::error:: message if the tag starts with 'v'
* fails if the tag isn't SemVer-shaped
(`<major>.<minor>.<patch>[-prerelease]`)
* on success, writes PACKAGE_VERSION=<tag> straight to GITHUB_ENV
- "Compute package version from tag" step folded into the assert (no
more `${TAG#v}` strip; the assert guarantees no leading v).
Version-string cleanups in docs:
- README.md: Versioning section header now lists `0.1.0-alpha` /
`0.1.x` / `0.2.0` / `1.0.0` (no v prefix); added a one-liner
explaining the convention.
- IMPLEMENTATION_PLAN.md: NOW / NEXT / LATER bucket headings switched
from `v0.1.x` to `0.1.x` etc.; the example tag-push command is now
`git tag 0.1.0-alpha && git push origin 0.1.0-alpha`.
Tests / build clean. Public API surface unchanged.
This lands before the first tag push so the workflow's assertion is in
place when 0.1.0-alpha goes out.v prefix) (#19)1 parent b0fc239 commit 41e9433
3 files changed
Lines changed: 36 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | | - | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
20 | 39 | | |
21 | 40 | | |
22 | 41 | | |
| |||
31 | 50 | | |
32 | 51 | | |
33 | 52 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | | - | |
180 | | - | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| |||
0 commit comments