Skip to content

Latest commit

 

History

History
91 lines (73 loc) · 1.96 KB

File metadata and controls

91 lines (73 loc) · 1.96 KB

Release process

Create a release branch

### To the right branch
git checkout master && git pull
git checkout devel && git pull
# cat package.json | grep version # to get the current version
# git checkout -b release/<next-version>
git merge master # get hot fixes if any
git merge devel
rm -Rf node_modules
yarn install # no missing module surprise
yarn upgrade # update versions to latest Vulcan NPM release

Run the app, run tests

yarn run typecheck
# Run mongo in a separate shell
yarn run start:mongo
### Test process
# Fix any problem that occur during those tests
# Check devel run
yarn run dev
# Check production run
yarn run build
yarn run start # test the production app
# Check static build and run
yarn run build:static && yarn run start:static
# Run tests
yarn run test
# Run tests specific to Vulcan Next (longer)
yarn run test:vn
# Test storybook
yarn run storybook
# Test storybook static build
yarn run build:storybook && yarn run start:storybook-static # test storybook  static export

# Optionnaly audit your page
# Run the app
# yarn run build
# yarn run start
# While running, run the audit
# yarn run audit

# Optionnaly test Docker version (takes a lot of time + not very useful as they don't change often)
# yarn run build:docker
# yarn run build:test:docker
# yarn run start:docker
# yarn run test:docker
### Versionning
# Complete the migrating documentation if there are breaking changes
npm version patch # patch or minor or major depending on the situation
# yarn version --new-version <level>  # command for yarn v1
# yarn version patch # works only with yarn v2 @see https://github.com/yarnpkg/yarn/issues/5367
yarn run auto-changelog # update changelog
git commit -am "bump version"

Deploy

### Deploy
git checkout master && git merge release/<next-version>
git push

### Update devel branches with fixes
git checkout develop && git pull && git merge master && git push