Update publish-canary script to include checkout (#26840)

* Update `publish-canary` script to include checkout

* Update contrib with publishing section
This commit is contained in:
Steven 2021-07-01 18:19:14 -04:00 committed by GitHub
parent 03b61778ba
commit acd0fabf83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -155,3 +155,7 @@ yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
````
## Publishing
Repo maintainers can use `yarn publish-canary` to publish a new version of all packages to npm.

View file

@ -31,7 +31,7 @@
"types": "lerna run types --stream",
"typescript": "lerna run typescript",
"prepublish": "lerna run prepublish",
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
"publish-canary": "git checkout canary && git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
"publish-stable": "lerna version --force-publish",
"lint-staged": "lint-staged",
"next-with-deps": "./scripts/next-with-deps.sh",