Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repository management: Add option to perform the legacy patch release #18938

Merged
merged 1 commit into from Dec 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -188,7 +188,8 @@
"package-plugin": "./bin/build-plugin-zip.sh",
"pot-to-php": "./bin/pot-to-php.js",
"publish:check": "npm run build:packages && lerna updated",
"publish:dev": "npm run build:packages && lerna publish --npm-tag next",
"publish:dev": "npm run build:packages && lerna publish --dist-tag next",
"publish:legacy": "npm run build:packages && lerna publish --dist-tag legacy",
"publish:prod": "npm run build:packages && lerna publish",
"test": "npm run lint && npm run test-unit",
"test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/README.md
Expand Up @@ -180,5 +180,15 @@ npm run publish:prod

Choose the correct version based on `CHANGELOG.md` files, confirm your choices and let Lerna do its magic.

### Legacy Patch Release

To release a patch for the older major or minor version of packages, run the following command:

```bash
npm run publish:legacy
```

This is usually necessary when adding bug fixes or security patches to the earlier versions of WordPress.

[lerna]: https://lerna.js.org/
[npm]: https://www.npmjs.com/