Chart.js/scripts/publish.sh
Evert Timberg ff354cc5b8
Remove release branch workflow (#7827)
* GitHub actions uses locked install for CI
* Add initial GitHub action to publish to NPM
* Detect the NPM tag (latest vs next) depending on the git tag
* Deploy docs from releases & master commits
* Remove Travis CI
* Update repo badge to use actions status
* Remove Travis env vars and update docs-config to take a parameter
* Update publish script regex to match other scripts
* Deploy docs action only runs in one spot
2020-10-13 17:12:19 -04:00

13 lines
205 B
Bash

#!/bin/bash
set -e
NPM_TAG="next"
if [[ "$GITHUB_REF" =~ ^[^-]+$ ]]; then
echo "Release tag indicates a full release. Releasing as \"latest\"."
NPM_TAG="latest"
fi
npm publish --tag "$NPM_TAG"