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
1. Go to the project's GitHub repository and click on the **Actions** tab
6
+
7
+
2. From the "Workflows" list on the left, click on "CI/CD Pipeline"
8
+
9
+
3. On the right, next to the "This workflow has a workflow_dispatch event trigger" label, click on the "Run workflow" dropdown, make sure the default branch is selected (if not manually changed, should be main or master) in the "Use workflow from" dropdown and click the "Run workflow" button
2. Add a secret with the name `NUGET_API_KEY` and as value use an API key from NuGet.org that is assigned to the packages for this project
24
+
25
+
NOTE: the automated NuGet publishing is execute **only** when a release is triggered by the ["Automated versioning" feature](#3-automated-versioning)
26
+
27
+
<br>
28
+
29
+
## 3. Automated versioning
30
+
31
+
Automatically bumps up the GitHub tag in the repo and executes the CD job
32
+
33
+
Note: **not every commit to your default branch creates a release**
34
+
35
+
Follow these instructions for any commit (push or PR merge) to your default branch, you would like to execute the automated versioning.
36
+
37
+
You would need one of three keywords at the start of your commit title. Each of the three keywords corresponds to a number in your release version i.e. v1.2.3. The release versioning uses the ["Conventional Commits" specification](https://www.conventionalcommits.org/en/v1.0.0/):
38
+
39
+
- "fix: ..." - this keyword corresponds to the last number v1.2.**3**, also known as PATCH;
40
+
- "feat: ..." - this keyword corresponds to the middle number v1.**2**.3, also known as MINOR;
41
+
- "perf: ..." - this keyword corresponds to the first number v**1**.2.3, also known as MAJOR. In addition, to trigger a MAJOR release, you would need to write "BREAKING CHANGE: ..." in the description of the commit, with an empty line above it to indicate it is in the <footer> portion of the description;
42
+
43
+
Note: when making a MAJOR release by committing through a terminal, use the multiple line syntax to add the commit title on one line and then adding an empty line, and then adding the "BREAKING CHANGE: " label
44
+
<br><br>
45
+
46
+
#### Examples
47
+
48
+
Example(fix/PATCH): <br>
49
+
`git commit -a -m "fix: this is a PATCH release triggering commit"`
50
+
<br>
51
+
`git push origin vnext`
52
+
<br>
53
+
Result: v1.2.3 -> **v1.2.4**
54
+
<br>
55
+
<br>
56
+
<br>
57
+
Example(feat/MINOR): <br>
58
+
`git commit -a -m "feat: this is a MINOR release triggering commit"`
59
+
<br>
60
+
`git push origin vnext`
61
+
<br>
62
+
Result: v1.2.3 -> **v1.3.0**
63
+
<br>
64
+
<br>
65
+
<br>
66
+
Example(perf/MAJOR): <br>
67
+
`` git commit -a -m "perf: this is a MAJOR release triggering commit ` ``
68
+
<br>
69
+
>> <br>
70
+
>>`BREAKING CHANGE: this is the breaking change"`
71
+
<br>
72
+
`git push origin vnext`
73
+
<br>
74
+
Result: v1.2.3 -> **v2.0.0**
75
+
<br>
76
+
<br>
77
+
Note: in the MAJOR release example, the PowerShell multiline syntax ` (backtick) is used. After writing a backtick, a press of the Enter key should open a new line.
78
+
79
+
#
80
+
81
+
Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
0 commit comments