Commit fb9c66a
committed
fix(ci): replace sed version bump with npm version to prevent script corruption
The CI workflow used `sed -i "s/\"version\": \".*\"/.../"` to bump the
version in package.json before publishing. This greedy regex matched
every `"version": "..."` pattern in the file, including the `version`
script in the `scripts` block, corrupting it from `"standard-version"`
to the release version string.
Replace sed with `npm version --no-git-tag-version --allow-same-version`
which safely modifies only the top-level `version` field. Also restore
the corrupted `version` script to its original value.
Fixes #891 parent 1898747 commit fb9c66a
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 85 | + | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments