Skip to content

Commit

Permalink
Repository management: Add option to perform the legacy patch release (
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Dec 5, 2019
1 parent a8c0ca9 commit ad337b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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/

0 comments on commit ad337b8

Please sign in to comment.