Read the Contributing Guide at Blitzjs.com
- Run
yarn push-nextjs
- If it fails with an error of
git-subrepo: Can't commit: 'subrepo/nextjs' doesn't contain upstream HEAD:
, then runyarn push-nextjs --force
(see ingydotnet/git-subrepo#530)
- If it fails with an error of
- Create new git branch for the upgrade
- In the forked repo (https://github.com/blitz-js/next.js), run:
git pull
git fetch --all
git merge v10.2.0
(change the version to be the version you are updating to)- Resolve all merge conflicts and complete merge
git push
- Run
yarn pull next-nextjs
- If it fails, run
git subrepo clean nextjs
and try again
- If it fails, run
- Run
yarn
- Run
yarn manypkg check
and optionallyyarn manypkg fix
to fix any issues - Under
nextjs/
, run./check-pre-compiled.sh
and commit the changes - Run
yarn build:nextjs
- Run
yarn lint
- fix any issues - Run
yarn build
- fix any issues - Run
yarn test:nextjs-size
and update tests if there are any failures - Open PR and fix any failing tests
- Any doc updates?