Skip to content

Instantly share code, notes, and snippets.

@ygalanter
ygalanter / validate.sh
Created February 16, 2023 00:56
Script validating that curren version of a package is not the same as published version
#!/bin/bash
exit_status=0
# getting current version of the package
VER_NEW=$(node -e "console.log(require('./package.json').version);")
# getting version of published package
VER_OLD=$(npm view . version)