File: publish.sh

package info (click to toggle)
node-chart.js 3.9.1%2B~0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,004 kB
  • sloc: javascript: 55,371; sh: 76; makefile: 10
file content (12 lines) | stat: -rwxr-xr-x 202 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -e

NPM_TAG="next"

if [[ "$VERSION" =~ ^[^-]+$ ]]; then
    echo "Release tag indicates a full release. Releasing as \"latest\"."
    NPM_TAG="latest"
fi

npm publish --tag "$NPM_TAG"