HOW_TO_RELEASE.md 862 字节
Newer Older
1 2 3 4 5
# How To Release ?

This one is mainly for [me](@jerome_etienne) to remember :)

```bash
N
nicolo.carpignoli 已提交
6 7 8 9 10
# Update following files:
CHANGELOG.md
three.js/src/threex/threex-artoolkitcontext.js
package.json
README.md
11 12 13 14 15 16 17 18 19 20 21 22 23 24

# Rebuild and minify everything - aka a-frame and three.js
make minify

# Commit everything
git add . && git commit -a -m 'Last commit before release' && git push

# Go to master branch
git checkout master

# Merge dev branch into master branch
git merge dev

# tag the release
N
nicolo.carpignoli 已提交
25
git tag <tag>
26 27 28 29 30 31 32

# push the tag on github
git push origin --tags

# push commits tag on github
git push

N
nicolo.carpignoli 已提交
33
# publish on NPM (only if have proper credentials)
34 35 36 37 38 39 40 41 42 43 44
npm publish

# Come back to dev branch
git checkout dev

# Update CHANGELOG.md - start new dev version
atom CHANGELOG.md

# update the a-frame codepen if needed
open "https://codepen.io/jeromeetienne/pen/mRqqzb?editors=1000#0"
```