Commit 7f801df
authored
fix: make release workflow idempotent and reset version to last successful release (#1908)
**Related Ticket:** #1907
### Description of Changes
Opening a draft PR to attempt to fix the broken release workflow:
- Reset package.json version to 6.16.0, the last successful published
version to realign with npm and GitHub release history
- Added cleanup step to the release workflow to automatically remove
stale Git tags left by failed runs. Can't easily test this until we
merge / publish
### Notes & Questions About Changes
- This resolves the npm error Version not changed issue caused by
leftover tags (v6.17.0+)
- After merge, the next workflow run should bump to v6.17.0 and publish
cleanly
- Manually ran `git tag -d v6.17.0 v6.18.0 v6.19.0 v6.19.1` and git push
origin :refs/tags/...` to delete stale tags locally and on GitHub
- [Old draft releases](https://github.com/NASA-IMPACT/veda-ui/releases)
in the veda-ui github repository (v6.17.0–v6.19.1) should be deleted
manually. I think we can already do that, before the next publish
attempt? cc @vgeorge @snmln
### Validation / Testing
- Verified locally that stale tags were deleted (git fetch --tags
--prune shows latest as v6.16.0)
- After merging, manually trigger "Release Every Monday" workflow and
confirm it completes the release and creates new tag v6.17.0.2 files changed
+25
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
56 | 77 | | |
57 | 78 | | |
58 | 79 | | |
| |||
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
86 | | - | |
| 107 | + | |
87 | 108 | | |
88 | 109 | | |
89 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments