Skip to content

Commit b1b50f1

Browse files
committed
docs(ci): update step 1 of publish release
1 parent 5e4e57f commit b1b50f1

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

ci/README.md

+1-12
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,7 @@ Any file or directory in this subdirectory should be documented here.
1212

1313
## Publishing a release
1414

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
2716
2. GitHub actions will generate the `npm-package`, `release-packages` and `release-images` artifacts.
2817
1. You do not have to wait for these.
2918
3. Run `yarn release:github-draft` to create a GitHub draft release from the template with

ci/build/release-prep.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 1. Check that you have a $GITHUB_TOKEN set and hub installed
55
# 2. Update the version of code-server (package.json, docs, etc.)
66
# 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
88

99
set -euo pipefail
1010

@@ -90,12 +90,14 @@ main() {
9090
# See: https://github.com/cli/cli/issues/575
9191
git push -u origin "$CURRENT_BRANCH"
9292

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+
9495
echo -e "Opening a draft PR on GitHub\n"
9596
# 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
9798

98-
# TODO update docs under /ci
99+
# Open PR in browser
100+
gh pr view --web
99101
}
100102

101103
main "$@"

0 commit comments

Comments
 (0)