Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Latest commit

 

History

History
148 lines (104 loc) · 3.15 KB

CONTRIBUTING.md

File metadata and controls

148 lines (104 loc) · 3.15 KB

Welcome to contribute React Keycap

Hello! Thank you for taking the time to contribute! If you want to join us, please send email to [email protected].

PRs Welcome


Installation Prerequisites

  • Git 2.22.+
  • Node 12.16.+
  • Npm 6.13.+

Contribute (Example developer:ispong )

  1. Fork Project (https://github.com/isxcode/react-keycap)

  2. Clone Project (Branch: latest)

git clone -b latest https://github.com/ispong/react-keycap.git
  1. Build Project
cd react-keycap
npm install && npm run build

Note:

If use npm link in local, you should link your project react and react-dom to react-keycap first
react and react-dom version must be in the same npm link must be run first

cd react-keycap
npm install && npm run local
  1. Install Local
npm link @isxcode/react-keycap
  1. Merge conflict (Branch: latest)
git remote add upstream https://github.com/isxcode/react-keycap.git
git fetch upstream
git merge upstream/latest
git add .
git commit -m ":sparkles: add new features"
git push origin latest
  1. Pull Request

https://github.com/isxcode/react-keycap/compare

Note: ispong/react-keycap/latest ==squash merge==> isxcode/react-keycap/latest

Build docs

npm i docsify-cli -g
cd react-keycap
docsify serve docs

http://localhost:3000

Build BookStory

npm run storybook

http://localhost:6006

Publish

publish alpha to Npm repository

vim VERSION.md

# -------------- VERSION.md --------------  
1.0.0-alpha
# -------------- VERSION.md -------------- 
vim gradle.properties

# ------------- vim .npmrc -------------  
registry=https://registry.npmjs.org/
# ------------- gradle.properties -------------
npm login 
npm run upload

publish RELEASE to Npm repository

vim VERSION.md

# -------------- VERSION.md --------------  
1.0.0
# -------------- VERSION.md -------------- 
vim gradle.properties

# ------------- vim .npmrc -------------  
registry=https://registry.npmjs.org/
# ------------- gradle.properties -------------
npm login 
npm run upload

publish RELEASE to GitHub repository

https://github.com/isxcode/react-keycap/actions/workflows/release-github.yml

Release new version

  • Fix Pull Request
  • Edit VERSION.md version number (version-alpha)
  • Edit SECURITY.md version number
  • Edit CHANGELOG.md version number (## 0.8.1 (September 03, 2021))
  • Submit and Fix GitHub Security
  • Check project badge status
  • Create GitHub new tag and new branch
  • Run GitHub action publish to GitHub repository
  • Run GitHub action publish new version docs
  • Publish to Sonatype repository