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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+58-2Lines changed: 58 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ yarn
13
13
Build the typescript and package it for distribution
14
14
15
15
```bash
16
-
yarn build&& yarn package
16
+
yarn build
17
17
```
18
18
19
19
Run the tests :heavy_check_mark:
@@ -22,6 +22,62 @@ Run the tests :heavy_check_mark:
22
22
yarn test
23
23
```
24
24
25
+
Make sure you include the latest distribution built in your PR commits
26
+
27
+
```bash
28
+
yarn build && git add .
29
+
```
30
+
31
+
## Releasing a new version (for core contributors only)
32
+
33
+
Always release from main
34
+
35
+
```bash
36
+
git fetch origin && git switch -C main origin/main
37
+
```
38
+
39
+
Generate the changelog, commit and tag of the release.
40
+
41
+
```bash
42
+
yarn release
43
+
```
44
+
45
+
Push the generated commit into `origin/main`
46
+
47
+
```bash
48
+
git push origin main
49
+
```
50
+
51
+
Push the generated version tag into `origin/main`.
52
+
53
+
```bash
54
+
git push --follow-tags origin main
55
+
```
56
+
57
+
This Github action follows the [recommended release workflow](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations)
58
+
59
+
### Releasing minor and patch versions
60
+
61
+
> NOTE: This operation may need multiple attempts. Always verify that the sha of the latest major version tag matches the latest commit in the main branch
62
+
63
+
Match the major version release tag with the newly create release tag.
64
+
65
+
```bash
66
+
git tag -fa v3 -m "update v3 tag to v3.x.y"
67
+
```
68
+
69
+
Push the updated major version to force the release into the Github Marketplace
70
+
71
+
```bash
72
+
git push origin v1 --force
73
+
```
74
+
75
+
### Releasing a major version
76
+
77
+
Go to create a new release in Github a follow the instructions [there](https://github.com/ngworker/angular-versions-action/releases/new).
78
+
79
+
Use the major version format for the release. For example if the current major version tag is `v3` the new release version must be `v4`.
80
+
25
81
## <aname="rules"></a> Coding Rules
26
82
27
83
To ensure consistency throughout the source code, keep these rules in mind as you are working:
@@ -33,7 +89,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
33
89
34
90
We have very precise rules over how our git commit messages can be formatted. This leads to **more
35
91
readable messages** that are easy to follow when looking through the **project history**. But also,
36
-
we use the git commit messages to **generate the Lumberjack changelog**.
92
+
we use the git commit messages to **generate the angular-versions-action changelog**.
Copy file name to clipboardExpand all lines: README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
# GitHub Action - Match Angular Versions
2
2
3
-
> DISCLAIMER: THIS ACTION IS HIGHLY EXPERIMENTAL.
4
-
5
3
This GitHub Action (written in JavaScript) modifies the root `package.json` of a project and replaces the version of all **Angular** related dependencies for given base version.
0 commit comments