From 49021066eee63c4807f7a339675d0d8f2c41815e Mon Sep 17 00:00:00 2001 From: Louis Lin Date: Sat, 23 Jan 2021 14:13:00 +0100 Subject: [PATCH] doc: add how to release in README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 72bf168..e6347d1 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ You can regulate the speed of the animation by adding the CSS class `faa-fast` o | faa-rising animated| faa-rising animated-hover| faa-rising| ## Development +### Build ```bash # install dependencies @@ -95,11 +96,24 @@ npm install npm run build ``` +### Local preview + To test in local, you can use: - [http-server][]: server local http server to the `css/` folder - any markdown preview to serve this README.md as a webpage (e.g. [markdown-preview.nvim][]) +### Release + +```sh +# this will create a new version and push to remote repository +npm version [ | major | minor | patch] +``` + +Then go to the [release page](https://github.com/l-lin/font-awesome-animation/releases) and manually +create a new release. There is an automatic [Github action](./.github/workflows/publish.yml) that +publishes automatically to NPM repository. + ## License [MIT License](LICENSE)