docs: add instructions for npm release (#39)

This commit is contained in:
Ville Brofeldt 2021-08-05 11:16:30 +03:00 committed by Yongjie Zhao
parent 89e214c73b
commit 044789f4b9
1 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,18 @@ Please read the
which include development environment setup and other things you should know about coding in this
repo.
### Releasing
Make sure you have commit rights to the main `superset-ui-plugins-deckgl` repo, have checked it out (NOT a fork!) and
belong to the `superset-ui` org on npm (=can publish new versions).
1. `yarn install`
2. `yarn build`
3. `yarn release-patch-version`. This will raise an error, but you should see a new commit and tag, e.g. `v0.4.8`
4. go to the DeckGL directory: `cd packages/superset-ui-legacy-preset-chart-deckgl`
5. make sure you're logged into npm: `npm whoami` should display your npm username.
6. `npm publish`
### License
Apache-2.0