Commit f8e2cae
authored
fix(build): pass VERSION arg through taskfile build and pack steps (#112)
* fix(generator): handle missing AssemblyInformationalVersion gracefully
- Fallback to `AssemblyName.Version` when `AssemblyInformationalVersionAttribute` is unavailable.
- Default to "unknown" if both values are missing.
* fix(tests): update regex pattern in `GeneratedCodeAttributeRegex`
- Enhanced regex to match version strings with a "+" suffix, e.g., `1.2.3+buildinfo`.
- Adjusted formatting for better readability and maintenance.
* feat(build): add support for custom versioning via `VERSION` variable
- Introduced `VERSION` variable in `taskfile.yaml` for custom build versioning.
- Updated `build`, `pack`, and `publish` tasks to include `/p:Version` when `VERSION` is defined.
- Enforced `VERSION` requirement for `publish` and `pack-local` tasks.
* fix(generator): simplify fallback logic for AssemblyInformationalVersion
- Removed fallback to `AssemblyName.Version` when `AssemblyInformationalVersion` is unavailable.
- Simplified assignment logic to default directly to "unknown".
* refactor(taskfile): rename `pack-local` task to `publish-local`
- Updated task name for clarity and consistency with its purpose.
- No changes to functionality or dependencies.
* fix(taskfile): include version in `publish-local` log output
- Updated `echo` command to display the `VERSION` being published.
- Enhances logging clarity during local NuGet publishing.
* fix(workflows): update workflow templates to use latest version
- Updated `publish-preview.yml` and `publish-release.yml` to reference `main` instead of `v8.0`.
- Adjusted `release` event trigger syntax in `publish-release.yml` for consistency.
- Ensures workflows use the latest updates from the shared templates.
* fix(taskfile): include version in `publish` log output
- Updated `echo` command to display the `VERSION` being published.
- Improves logging clarity during NuGet package publishing.1 parent 52de3fd commit f8e2cae
4 files changed
Lines changed: 16 additions & 10 deletions
File tree
- .github/workflows
- src/LayeredCraft.DynamoMapper.Generators/Emitters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
60 | | - | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
0 commit comments