File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ # Publish procedure
2+
3+ ## Version 1
4+ For publishing v1 of the plugin which supports webpack 4, checkout ` v1 ` branch, and run the following commands:
5+ ``` bash
6+ # checkout branch
7+ git checkout v1
8+
9+ # pull the latest code
10+ git pull
11+
12+ # make sure dependencies are in correct version
13+ yarn
14+
15+ # bump package version
16+ yarn release
17+
18+ # create build
19+ yarn build
20+
21+ # publish to npm (OTP needed)
22+ npm publish
23+
24+ # push code and trigger github release creation
25+ git push
26+ ```
27+
28+ ## Version 2
29+ For publishing v2 of the plugin which supports webpack 5, checkout ` develop ` branch, and run the following commands:
30+ ``` bash
31+ # checkout branch
32+ git checkout develop
33+
34+ # pull the latest code
35+ git pull
36+
37+ # switch to master branch
38+ git checkout master
39+
40+ # pull the latest code from master
41+ git pull
42+
43+ # merge code from develop branch
44+ git merge --no-ff develop
45+
46+ # make sure dependencies are in correct version
47+ yarn
48+
49+ # bump package version
50+ yarn release
51+
52+ # create build
53+ yarn build
54+
55+ # publish to npm (OTP needed)
56+ npm publish
57+
58+ # push code and trigger github release creation
59+ git push
60+ ```
You can’t perform that action at this time.
0 commit comments