Here are the commands you need when developing the SDK:
$ yarn install
$ yarn run build
$ yarn test
$ yarn run lint
$ yarn run format
$ yarn run serve-docs
$ yarn run build-docs
$ git checkout master
$ yarn run build-docs
$ mv _docpress ../
$ git checkout gh-pages
$ cp -r ../_docpress/* ./
$ rm -r ../_docpress
$ git add .
$ git commit -m "Update docs"
$ git push --force
$ git checkout master
Update versions:
package.json
src/version.js
Make a new build (as src/version.js
needs to be up-to-date in the build) and commit
yarn run build
Update CHANGELOG.md
Commit and push
Login as sharetribe
with npm login
Publish with npm publish
Add a new tag
git tag -a v1.2.3 -m v1.2.3
Update latest
tag
git push origin :refs/tags/latest
git tag -f -a latest -m latest
Push the tag
git push --tags
Go to Github releases and draft a new release
Use the following content:
Tag version: <the newly created tag>
Release title: <version number>
Describe this release:
<copy the content from the [CHANGELOG.md](CHANGELOG.md)>
Here's a full example:
Tag version: v1.2.3
Release title: v1.2.3
Describe this release:
### Added
- Added many things
### Changed
- Changed this and that
Announce the new version in Slack