Commit e5cccc1
authored
fix(release): one GitHub release step, not two (#46)
The v2.0.1 release failed:
HTTP 422: Validation Failed
Release.tag_name already exists
release.yml carried the step twice. The first named the release for the version
with the v stripped, which is how the 2.0.0 and 2.0.1 releases already on this
repository were created, so creating 2.0.1 a second time was refused. The
duplicate arrived when the v-prefix change was applied on top of a file that
already had the step.
The two are merged into one: the changelog lookup and the install line from the
first, the existence guard from the second, and the release named for the tag
rather than the stripped version, so a vX.Y.Z tag produces a vX.Y.Z release.
The bare 2.0.0 and 2.0.1 releases are left alone. They point at the tags that
were actually published, and renaming them would break any link anyone holds.1 parent 472e9de commit e5cccc1
1 file changed
Lines changed: 4 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 74 | + | |
| 75 | + | |
94 | 76 | | |
95 | 77 | | |
96 | 78 | | |
97 | 79 | | |
98 | 80 | | |
99 | 81 | | |
100 | 82 | | |
| 83 | + | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
105 | 88 | | |
106 | | - | |
| 89 | + | |
107 | 90 | | |
0 commit comments