From 197ccc0b12bda537b7a42832c73c9feba374fbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Tue, 5 Jan 2021 11:35:23 +0800 Subject: [PATCH] Update CONTRIBUTING.md --- CONTRIBUTING.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 416ad373fa..7b45d0db9d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -92,3 +92,23 @@ You can simply [Run One App That Linked To Source Code](#run-one-app-that-linked ### Publish After passing the test of Creator Code, you should release a new version for both the packages in the '/packages' folder and the package named 'steedos-server' in the '/server' folder, so that to unify all of the packages version numbers. + +- Commit and submit the code in the '/server' folder that built by [Build Creator](#build-creator) to Github. +- Enter to the root path of this repository on command line. +- Run the shell `yarn ver` on command line, and select the version number. +- Run the shell `yarn pubBefore_push_submodules` on command line, you can see [.git_push.js](.scripts/.git_push.js) about this command. + +> When the platform vesion is '<= 1.22', this command is invalid, as an alternative, you should cd to the 'apps' folder, and run the shell bellow in all the project folder one by one. + +```shell +git add . +/*Replace '${versionInfo.version}' to the version number that you want publish to.*/ +git commit -m v${versionInfo.version} +git push +``` + +- Modify the version number in the file 'package.template.json' in the folder 'packages\project-template-empty'. +- Confirm the 'last line sequence' of the file ‘packages\create-steedos-app\index.js’ is LF. +- Commit and submit the code to Github. +- Run the shell `yarn pub` to publish, or the shell `yarn pub_next` for a beta version. +- After release, you can run the shell `yarn syncToTaoBao` for synchronization of Taobao source.