Skip to content

Commit 775366e

Browse files
authored
Merge pull request #122 from icelam/docs/publish-procedures
docs: document publish procedures
2 parents 5b14a66 + eceee2a commit 775366e

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

docs/publish.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
```

0 commit comments

Comments
 (0)