@@ -8,14 +8,15 @@ Any file and directory added into this tree should be documented here.
88
99## Publishing a release
1010
11+ Make sure you have ` $GITHUB_TOKEN ` set and [ hub] ( https://github.com/github/hub ) installed.
12+
11131 . Update the version of code-server in ` package.json ` and push a commit
12- 1 . CI will run and generate the ` npm-package ` and ` release-packages ` artifacts on the GH actions workflow
13- 1 . Wait for this to complete
14- 1 . Ensure ` $GITHUB_TOKEN ` is set
15- 1 . Run ` yarn release:github-draft ` to download the artifacts into ` ./release-packages ` and
16- open your ` $EDITOR ` with the release notes template
14+ 1 . GitHub actions will generate the ` npm-package ` and ` release-packages ` artifacts
15+ 1 . Run ` yarn release:github-draft ` to create a GitHub draft release from the template with
16+ the updated version.
1717 1 . Summarize the major changes in the release notes and link to the relevant issues.
18- 1 . Exit your ` $EDITOR ` and a draft release will be created on github
18+ 1 . Wait for the artifacts in step 2 to build
19+ 1 . Run ` yarn release:github-assets ` to download the artifacts and then upload them to the draft release
19201 . Run some basic sanity tests on one of the released packages
20211 . Publish the release
2122 1 . CI will automatically grab the artifacts and then
@@ -78,9 +79,11 @@ You can disable minification by setting `MINIFY=`.
7879- [ ./build/code-server-nfpm.sh] ( ./build/code-server-nfpm.sh )
7980 - Entrypoint script for code-server for .deb and .rpm
8081- [ ./build/release-github-draft.sh] ( ./build/release-github-draft.sh ) (` yarn release:github-draft ` )
81- - Downloads the release-package artifact for the current commit from CI
82- - Uses [ hub] ( https://github.com/github/hub ) to create a draft release with the artifacts and
83- opens your ` $EDITOR ` to edit with a default template.
82+ - Uses [ hub] ( https://github.com/github/hub ) to create a draft release with a template description
83+ - [ ./build/release-github-assets.sh] ( ./build/release-github-assets.sh ) (` yarn release:github-assets ` )
84+ - Downloads the release-package artifacts for the current commit from CI
85+ - Uses [ hub] ( https://github.com/github/hub ) to upload the artifacts to the release
86+ specified in ` package.json `
8487
8588## release-container
8689
0 commit comments