tools/release-posts/README.md
This is a cli tool designed to generate draft release posts for WooCommerce. Posts generated via the tool will be draft posted to https://developer.woocommerce.com.
You can also generate an HTML representation of the post if you don't have access to a WordPress.com auth token.
pnpm i has been run in the monorepo..env file with the env variables set. WCCOM_TOKEN is optional if you're using --outputOnly, but
the GITHUB_ACCESS_TOKEN is required. If you need help generating a token see the docs. To silence all CLI output, set LOGGER_LEVEL to "silent".pnpm release-post release "6.8.0" --outputOnlypnpm release-post <command> --help. e.g. pnpm release-post rc --helpThis tool will publish draft posts to https://developer.woocommerce.com for you if you omit the --outputOnly flag. There is some minimal first time setup for this though:
http://localhosthttp://localhost:3000/oauthhttp://localhostclient secret and the client id..env file add the client secret to the WPCOM_OAUTH_CLIENT_SECRET variable and the client id to the WPCOM_OAUTH_CLIENT_ID variable.If you don't have a final release yet you can generate an HTML contributors list that you can copy paste into a blank post.
To do that simply run pnpm release-post contributors "<currentVersion>" "<previousVersion>"
If you can't run anything on your localhost port 3000 you may want to override the redirect uri for oauth.
Steps:
WPCOM_OAUTH_REDIRECT_URI variable in .env. e.g. http://localhost:4321/oauth.env