Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Updates the `latest` dist-tag on a package so that package@latest points to the same version as package@next
#!/bin/bash
echo "Enter OTP code:"
read otp
export NPM_CONFIG_OTP=$otp
function next2latest {
V=$(npm info $1 dist-tags.next | xargs)
npm dist-tags add $1@$V latest
}
next2latest graphql-parse-resolve-info
next2latest graphile-build
next2latest graphile-build-pg
next2latest postgraphile-core
next2latest graphile-utils
next2latest postgraphile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment