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
Simplify npm package release by setting the version (#763)
Previously, you had to manually open a PR to bump up the version in package.json.
Now, the version is automatically bumped during the release pipeline.
Copy file name to clipboardExpand all lines: DEVELOPMENT.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,15 +56,13 @@ We adhere to the [general Sourcegraph principles for testing](https://docs.sourc
56
56
57
57
## Releasing
58
58
59
-
1. If this is a non-patch release, update the changelog. Add a new section `## $MAJOR.MINOR` to [`CHANGELOG.md`](https://github.com/sourcegraph/src-cli/blob/main/CHANGELOG.md#unreleased) immediately under `## Unreleased changes`. Add new empty `Added`, `Changed`, `Fixed`, and `Removed` sections under `## Unreleased changes`.
60
-
2. Find the latest version (either via the releases tab on GitHub or via git tags) to determine which version you are releasing.
61
-
3. Update the `"version"` field in the file `npm-distribution/package.json` to match the version you are releasing.
62
-
4. Open a pull request with the new changelog and updated `npm-distribution/package.json` version. Get the pull request merged before completing the next step.
63
-
5.`VERSION=9.9.9 ./release.sh` (replace `9.9.9` with the version you are releasing)
64
-
6. GitHub will automatically perform the release via the [goreleaser action](https://github.com/sourcegraph/src-cli/actions?query=workflow%3AGoreleaser). Once it has finished, **you need to confirm**:
59
+
1. Find the latest version (either via the releases tab on GitHub or via git tags) to determine which version you are releasing.
60
+
2. (optional) If this is a non-patch release, update the changelog. Add a new section `## $MAJOR.MINOR` to [`CHANGELOG.md`](https://github.com/sourcegraph/src-cli/blob/main/CHANGELOG.md#unreleased) immediately under `## Unreleased changes`. Add new empty `Added`, `Changed`, `Fixed`, and `Removed` sections under `## Unreleased changes`. Open a pull request with the new changelog. Get the pull request merged before completing the next step.
61
+
3.`VERSION=9.9.9 ./release.sh` (replace `9.9.9` with the version you are releasing)
62
+
4. GitHub will automatically perform the release via the [goreleaser action](https://github.com/sourcegraph/src-cli/actions?query=workflow%3AGoreleaser). Once it has finished, **you need to confirm**:
65
63
1. The [curl commands in the README](README.markdown#installation) fetch the latest version above.
66
64
2. The [releases section of the repo sidebar](https://github.com/sourcegraph/src-cli) shows the correct version.
67
-
7. Make the necessary updates to the main Sourcegraph repo:
65
+
5. Make the necessary updates to the main Sourcegraph repo:
68
66
1. Update the `MinimumVersion` constant in the [src-cli package](https://github.com/sourcegraph/sourcegraph/tree/main/internal/src-cli/consts.go).
69
67
2. Update the reference documentation by running `go generate ./doc/cli/references`.
0 commit comments