From 35a2d71b67960c603a8d1f0aa3a5db933b7d31d3 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 3 Sep 2020 02:16:57 -0400 Subject: [PATCH] Minor release process fixes (#2042) --- ci/README.md | 7 ++++--- ci/dev/image/{exec.sh => run.sh} | 2 ++ doc/CONTRIBUTING.md | 10 +++++----- 3 files changed, 11 insertions(+), 8 deletions(-) rename ci/dev/image/{exec.sh => run.sh} (89%) diff --git a/ci/README.md b/ci/README.md index b32cf287..19b7ee8e 100644 --- a/ci/README.md +++ b/ci/README.md @@ -18,13 +18,15 @@ Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub) 1. Update in `package.json` 2. Update in [./doc/install.md](../doc/install.md) 2. GitHub actions will generate the `npm-package`, `release-packages` and `release-images` artifacts. + 1. You do not have to wait for these. 3. Run `yarn release:github-draft` to create a GitHub draft release from the template with the updated version. 1. Summarize the major changes in the release notes and link to the relevant issues. 4. Wait for the artifacts in step 2 to build. -5. Run `yarn release:github-assets` to download the `release-packages` artifact and - upload them to the draft release. +5. Run `yarn release:github-assets` to download the `release-packages` artifact. + - It will upload them to the draft release. 6. Run some basic sanity tests on one of the released packages. + - Especially make sure the terminal works fine. 7. Make sure the github release tag is the commit with the artifacts. This is a bug in `hub` where uploading assets in step 5 will break the tag. 8. Publish the release and merge the PR. @@ -36,7 +38,6 @@ Make sure you have `$GITHUB_TOKEN` set and [hub](https://github.com/github/hub) 10. Wait for the npm package to be published. 11. Update the homebrew package. - Send a pull request to [homebrew-core](https://github.com/Homebrew/homebrew-core) with the URL in the [formula](https://github.com/Homebrew/homebrew-core/blob/master/Formula/code-server.rb) updated. -12. Make sure to add a release without the `v` prefix for autoupdate from `3.2.0`. ## dev diff --git a/ci/dev/image/exec.sh b/ci/dev/image/run.sh similarity index 89% rename from ci/dev/image/exec.sh rename to ci/dev/image/run.sh index c443f1cc..70ab67e1 100755 --- a/ci/dev/image/exec.sh +++ b/ci/dev/image/run.sh @@ -11,6 +11,8 @@ main() { -v "$PWD:/src" \ -w /src \ -p 127.0.0.1:8080:8080 \ + -u "$(id -u):$(id -g)" \ + -e CI \ "$(docker_build ./ci/images/debian8)" \ "$@" } diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index a2b73276..80348848 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -46,9 +46,9 @@ yarn watch To develop inside of an isolated docker container: ```shell -./ci/dev/image/exec.sh yarn -./ci/dev/image/exec.sh yarn vscode -./ci/dev/image/exec.sh yarn watch +./ci/dev/image/run.sh yarn +./ci/dev/image/run.sh yarn vscode +./ci/dev/image/run.sh yarn watch ``` `yarn watch` will live reload changes to the source. @@ -61,7 +61,7 @@ reset VS Code then run `yarn vscode:patch`. You can build with: ```shell -./ci/steps/release.sh +./ci/dev/image/run.sh ./ci/steps/release.sh ``` Run your build with: @@ -76,7 +76,7 @@ node . Build release packages (make sure you run `./ci/steps/release.sh` first): ``` -./ci/dev/image/exec.sh ./ci/steps/release-packages.sh +./ci/dev/image/run.sh ./ci/steps/release-packages.sh # The standalone release is in ./release-standalone # .deb, .rpm and the standalone archive are in ./release-packages ```