Download react-spring/scripts/version-and-publish.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/version-and-publish.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/version-and-publish.sh
-
curl -L -o version-and-publish.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/scripts/version-and-publish.sh
620 Bytes
| # Force start from root folder | |
| cd "$(dirname "$0")/.." | |
| set -e | |
| version=$VERSION | |
| distTag=$DIST_TAG | |
| withTag=$WITH_TAG | |
| if [[ -z "$version" ]]; then | |
| echo "Please enter the version you want to publish" | |
| read -r version | |
| fi | |
| if [[ -z "$distTag" ]]; then | |
| echo "Please enter the dist-tag you want to publish with" | |
| read -r distTag | |
| fi | |
| # publish packages | |
| ./node_modules/.bin/changeset version --snapshot "$version" | |
| if [[ "$withTag" == "true" ]]; then | |
| ./node_modules/.bin/changeset publish --snapshot --tag "$distTag" | |
| else | |
| ./node_modules/.bin/changeset publish --no-git-tag --snapshot --tag "$distTag" | |
| fi | |