@@ -47,21 +47,12 @@ specified below.
47
47
+ Update ` "version" ` to ` X.Y.Z `
48
48
+ Ensure you're using ` node ` version 12 and ` npm ` version 6 to minimize diffs to ` package-lock.json `
49
49
+ Run ` rm -rf node_modules && npm install && npm run build `
50
+ - This the last good time to install the extensions locally and check that everything works in dev mode
50
51
- Run ` git diff ` and ensure that only the files you modified and the build artifacts have changed
51
52
- Ensure that the diff in ` package-lock.json ` seems sane
52
- - Commit and push. (NOTE: once pushed, the Github readme refers to the new versions, so don't stop here!)
53
-
54
- ### Tag the release
55
-
56
- Make sure tests pass CI checks, then tag this commit as ` vX.Y.Z ` (e.g. ` v3.1.1 ` ) and push the tag.
57
-
58
- ``` bash
59
- (plotly_dev) $ git checkout master
60
- (plotly_dev) $ git stash
61
- (plotly_dev) $ git pull origin master
62
- (plotly_dev) $ git tag vX.Y.Z
63
- (plotly_dev) $ git push origin vX.Y.Z
64
- ```
53
+ - Commit and tag but * don't push* until after everything is available on NPM/PyPI/Conda (see below):
54
+ + ` git commit -a -m "release vX.Y.Z" `
55
+ + ` git tag vX.Y.Z `
65
56
66
57
### Publish JS Extensions to NPM
67
58
@@ -75,11 +66,14 @@ cd packages/javascript/plotlywidget
75
66
npm run build && npm publish --access public
76
67
```
77
68
69
+ Final checks could be done here if desired.
70
+
78
71
### Publishing to PyPI
79
72
80
- Build and publish the final version to PyPI
73
+ Build and publish the final version to PyPI.
81
74
82
75
``` bash
76
+ (plotly_dev) $ git status # make sure it's not dirty!
83
77
(plotly_dev) $ cd packages/python/plotly
84
78
(plotly_dev) $ rm -rf dist
85
79
(plotly_dev) $ python setup.py sdist bdist_wheel
@@ -115,7 +109,12 @@ provides, which looks something like this:
115
109
$ anaconda upload /path/to/anaconda3/conda-bld/noarch/plotly-*.tar.bz2
116
110
```
117
111
118
- ### Add GitHub Release entry
112
+ ### Push the commit and add GitHub Release entry
113
+
114
+ ``` bash
115
+ (plotly_dev) $ git push origin master
116
+ (plotly_dev) $ git push origin vX.Y.Z
117
+ ```
119
118
120
119
1 . Go to https://github.com/plotly/plotly.py/releases and "Draft a new release"
121
120
2 . Enter the ` vX.Y.Z ` tag you created already above and make "Release title" the same string as the tag.
0 commit comments