Skip to content

Release

Lu Fei edited this page Jun 24, 2023 · 5 revisions

Here is the docsify release process.

Steps

  1. Create a release PR. New pull request

You can write the Changelog manually, such as #1524
Waiting for a review from @docsifyjs/reviewers

  1. Pull the latest changes

Your local develop and main branches should be up to date with the remote.

git clone git@github.com:docsifyjs/docsify.git
  1. Check whether you have npm access or not

If not, please contact @docsifyjs/reviewers

  1. Checkout the develop branch

The current default branch is develop, you can skip this step.

  1. Install dependencies
npm run bootstrap
  1. Run all tests
npm test
  1. Make sure the lib, theme folder and others are created and verify the numbers of files present in the lib theme and src

  2. Run publish script

npm run pub
  • it will ask for the version, give the version. such as: 4.12.0
  • It will do the release. F.e. ed4b5be6
  • It will also push the changes to the develop branch (verify this)

Note: The changelog may need to be updated. If there are changes, remember to describe them. F.e. a2132c89

Note: Do not update snapshots during this time. Snapshot updates must be reviewed and approved via the regular pull request process to ensure we're not snapshotting bugs.

  1. Checkout the main branch
git checkout main
  1. Pull the changes from remote develop
git merge develop
  1. Push the changes to main
git push
  1. Release the version tag to GitHub

Go to https://github.com/docsifyjs/docsify/releases

Verify

  1. Check the version of both docsify and docsify-server-renderer in npm
  1. Compare the develop and main branches in our github

there should not be any differences in commits; both should be same.

  1. Check the changelogs in both branches

  2. The release PR (4.12.0) should be merged/closed automatically by now

if not then there is some problem.

Clone this wiki locally