@@ -8,12 +8,16 @@ 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 . Create a new draft release and attach all files in ` release-packages `
14- 1 . Run some basic sanity tests on one of the released packages
15- 1 . Summarize the major changes in the release notes and link to the relevant issues.
16- 1 . Make sure to mention the VS Code version in the release notes
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.
17+ 1 . Summarize the major changes in the release notes and link to the relevant issues.
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
20+ 1 . Run some basic sanity tests on one of the released packages
17211 . Publish the release
1822 1 . CI will automatically grab the artifacts and then
1923 1 . Publish the NPM package
@@ -45,7 +49,7 @@ This directory contains scripts used for the development of code-server.
4549
4650## build
4751
48- This directory contains the scripts used to build code-server.
52+ This directory contains the scripts used to build and release code-server.
4953You can disable minification by setting ` MINIFY= ` .
5054
5155- [ ./lib.sh] ( ./lib.sh )
@@ -74,6 +78,12 @@ You can disable minification by setting `MINIFY=`.
7478 - Used to configure [ nfpm] ( https://github.com/goreleaser/nfpm ) to generate .deb and .rpm
7579- [ ./build/code-server-nfpm.sh] ( ./build/code-server-nfpm.sh )
7680 - Entrypoint script for code-server for .deb and .rpm
81+ - [ ./build/release-github-draft.sh] ( ./build/release-github-draft.sh ) (` yarn release:github-draft ` )
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 `
7787
7888## release-container
7989
0 commit comments