github-repo-automation icon indicating copy to clipboard operation
github-repo-automation copied to clipboard

command that tags the most recently published version to npm as "legacy"

Open bcoe opened this issue 4 years ago • 2 comments

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.

bcoe avatar Jan 09 '20 17:01 bcoe

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 avatar Jan 09 '20 19:01 JustinBeckwith

@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.

bcoe avatar Jan 09 '20 21:01 bcoe