File tree 2 files changed +7
-16
lines changed
2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,7 @@ Any file or directory in this subdirectory should be documented here.
12
12
13
13
## Publishing a release
14
14
15
- Make sure you have ` $GITHUB_TOKEN ` set and [ hub] ( https://github.com/github/hub ) installed.
16
-
17
- 1 . Update the version of code-server and make a PR.
18
- 1 . Update in ` package.json `
19
- 2 . Update in [ ./docs/install.md] ( ../docs/install.md )
20
- 3 . Update in [ ./ci/helm-chart/README.md] ( ../ci/helm-chart/README.md )
21
- - Remember to update the chart version as well on top of appVersion in ` Chart.yaml ` .
22
- - Run ` rg -g '!yarn.lock' -g '!*.svg' '3\.7\.5' ` to ensure all values have been
23
- changed. Replace the numbers as needed.
24
- - You can install ` rg ` or ` ripgrep ` on macOS [ here] ( https://formulae.brew.sh/formula/ripgrep ) .
25
- 4 . Update the code coverage badge (see [ here] ( #updating-code-coverage-in-readme ) for instructions)
26
- 5 . Update the docs badge in [ ./README.md] ( ../README.md )
15
+ 1 . Run ` yarn release:prep ` and type in the new version i.e. 3.8.1
27
16
2 . GitHub actions will generate the ` npm-package ` , ` release-packages ` and ` release-images ` artifacts.
28
17
1 . You do not have to wait for these.
29
18
3 . Run ` yarn release:github-draft ` to create a GitHub draft release from the template with
Original file line number Diff line number Diff line change 4
4
# 1. Check that you have a $GITHUB_TOKEN set and hub installed
5
5
# 2. Update the version of code-server (package.json, docs, etc.)
6
6
# 3. Update the code coverage badge in the README
7
- # 4. Open a draft PR using the release_template.md
7
+ # 4. Open a draft PR using the release_template.md and view in browser
8
8
9
9
set -euo pipefail
10
10
@@ -90,12 +90,14 @@ main() {
90
90
# See: https://github.com/cli/cli/issues/575
91
91
git push -u origin " $CURRENT_BRANCH "
92
92
93
- RELEASE_TEMPLATE_FILE=" ../../.github/PULL_REQUEST_TEMPLATE/pull_request_template.md"
93
+ RELEASE_TEMPLATE_STRING=$( cat ../../.github/PULL_REQUEST_TEMPLATE/release_template.md)
94
+
94
95
echo -e " Opening a draft PR on GitHub\n"
95
96
# To read about these flags, visit the docs: https://cli.github.com/manual/gh_pr_create
96
- gh pr create --base main --title " release: $CODE_SERVER_VERSION_TO_UPDATE " --body-file " $RELEASE_TEMPLATE_FILE " --reviewer @cdr/code-server-reviewers --repo cdr/code-server --draft
97
+ gh pr create --base main --title " release: $CODE_SERVER_VERSION_TO_UPDATE " --body " $RELEASE_TEMPLATE_STRING " --reviewer @cdr/code-server-reviewers --repo cdr/code-server --draft
97
98
98
- # TODO update docs under /ci
99
+ # Open PR in browser
100
+ gh pr view --web
99
101
}
100
102
101
103
main " $@ "
You can’t perform that action at this time.
0 commit comments