Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion docs/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const root = 'https://mongoose-js.netlify.app/.netlify/functions';

const defaultVersion = '8.x';
const defaultVersion = '9.x';
const versionFromUrl = window.location.pathname.match(/^\/docs\/(\d+\.x)/);
const version = versionFromUrl ? versionFromUrl[1] : defaultVersion;

Expand Down
21 changes: 13 additions & 8 deletions release-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,29 @@
3. update `CHANGELOG.md`. Add #<TICKET_NUMBER> as well as a link to the github user who fixed it if applicable.
4. git commit -a -m 'release x.x.x'
5. git tag x.x.x
6. `npm run release`, or `npm run release-legacy` for 4.x
6. create a new release on GitHub - this will automatically deploy to npm for 8.x and 9.x
7. update mongoosejs.com (see "updating the website" below)
8. tweet changelog link from [@mongoosejs](https://twitter.com/mongoosejs)
9. Announce on mongoosejsteam slack channel
10. if this is a legacy release, `git merge` changes into master.

## updating the website

For 6.x

0. Change to the master branch
1. execute `npm run docs:prepare:publish:stable` (when this process completes you'll be on the gh-pages branch)
2. `git commit -a -m 'chore: website 6.x.x'`
2. `git commit -a -m 'chore: website 9.x.x'`
3. `git push origin gh-pages`

For 5.x
For 8.x

0. Change to the 5.x branch
1. execute `make docs_legacy` (when this process completes you'll be on the gh-pages branch)
2. `git commit -a -m 'chore: website 5.x.x'`
0. Change to the 8.x branch
1. execute `npm run docs:prepare:publish:8x` (when this process completes you'll be on the gh-pages branch)
2. `git commit -a -m 'chore: website 8.x.x'`
3. `git push origin gh-pages`

## major releases

- create docs/migrating_to_x.md
- update default version in docs/js/search.js
- create branch for previous major version, like `9.x`
- update previous major version branch's `publish.yml` to publish to a tag that isn't latest, like `9x` or similar
Loading