Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions docs/publish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Publish procedure

## Version 1
For publishing v1 of the plugin which supports webpack 4, checkout `v1` branch, and run the following commands:
```bash
# checkout branch
git checkout v1

# pull the latest code
git pull

# make sure dependencies are in correct version
yarn

# bump package version
yarn release

# create build
yarn build

# publish to npm (OTP needed)
npm publish

# push code and trigger github release creation
git push
```

## Version 2
For publishing v2 of the plugin which supports webpack 5, checkout `develop` branch, and run the following commands:
```bash
# checkout branch
git checkout develop

# pull the latest code
git pull

# switch to master branch
git checkout master

# pull the latest code from master
git pull

# merge code from develop branch
git merge --no-ff develop

# make sure dependencies are in correct version
yarn

# bump package version
yarn release

# create build
yarn build

# publish to npm (OTP needed)
npm publish

# push code and trigger github release creation
git push
```