mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
* 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
13 lines
205 B
Bash
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"
|