Add verdaccio.sh script for publishing package to local registry

This commit is contained in:
ukrocks007 2024-03-28 23:13:26 +05:30
parent cb23941914
commit 7746cd47aa
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/zsh -ex
# TODO: Make this generic so everyone can run it
VERSION=0.0.0
# Unpublish the current version
npm unpublish --registry http://localhost:4873/ @boxyhq/security-sinks@$VERSION
# Build the package
rm -rf dist
npm run build
# Publish
npm publish --registry http://localhost:4873/