File: publish.sh

package info (click to toggle)
node-chart.js 3.9.1%2B~cs3.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,692 kB
  • sloc: javascript: 72,443; sh: 98; makefile: 11
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"