Skip to content

Commit acd0fab

Browse files
authored
Update publish-canary script to include checkout (#26840)
* Update `publish-canary` script to include checkout * Update contrib with publishing section
1 parent 03b6177 commit acd0fab

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

contributing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,7 @@ yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
155155

156156
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)).
157157
````
158+
159+
## Publishing
160+
161+
Repo maintainers can use `yarn publish-canary` to publish a new version of all packages to npm.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"types": "lerna run types --stream",
3232
"typescript": "lerna run typescript",
3333
"prepublish": "lerna run prepublish",
34-
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
34+
"publish-canary": "git checkout canary && git pull && lerna version prerelease --preid canary --force-publish && release --pre --skip-questions",
3535
"publish-stable": "lerna version --force-publish",
3636
"lint-staged": "lint-staged",
3737
"next-with-deps": "./scripts/next-with-deps.sh",

0 commit comments

Comments
 (0)