Skip to content

Instantly share code, notes, and snippets.

@benjie
Created December 7, 2018 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjie/0f881226d40b9a0f414e03d2e379dfc3 to your computer and use it in GitHub Desktop.
Save benjie/0f881226d40b9a0f414e03d2e379dfc3 to your computer and use it in GitHub Desktop.
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