From 3643543c5998af615a8fe8b3aac7ef7d9a8873d1 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 1 Jul 2021 17:54:45 -0400 Subject: [PATCH 1/2] Update `publish-canary` script to include checkout --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d1723b7eb8807..c69bd5fe91914 100644 --- a/package.json +++ b/package.json @@ -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", From 9b0cd580794ffd56e9ea713c0d517cc15724cb1f Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 1 Jul 2021 17:57:02 -0400 Subject: [PATCH 2/2] Update contrib with publishing section --- contributing.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contributing.md b/contributing.md index f743d8cfba2a6..272de4c30562a 100644 --- a/contributing.md +++ b/contributing.md @@ -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.