github-repo-automation
github-repo-automation copied to clipboard
command that tags the most recently published version to npm as "legacy"
For the Node.js version support policy I'm drafting, we need a command that creates a legacy dist-tag, based on the most recently published version of all of our libraries.
We would run this command immediately before dropping support for an EOL version of Node.js.
Do we need to add a new command here? For most things you'd do on the cmdline, you can follow the pattern:
repo sync
repo exec -- git some-command do-stuff
repo exec -- git push origin blergh
@JustinBeckwith the annoying thing is you need to pass the package version to npm dist-tag add
, so I think it would be nice to have a script that parses the package.json
, takes the most recently published version, and generates the npm dist-tag add
command.