forked from championswimmer/vuex-module-decorators
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ccf34f
commit 235357d
Showing
4 changed files
with
29 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
VERSION="v$(node -p "require('./package.json').version")" | ||
|
||
git checkout main | ||
git pull | ||
git fetch --tags | ||
VERSION_COUNT=$(git tag --list $VERSION | wc -l) | ||
|
||
if [ $VERSION_COUNT -gt 0 ] | ||
then | ||
echo "Version $VERSION already deployed" | ||
exit 0 | ||
else | ||
echo "Deploying version $VERSION" | ||
fi | ||
|
||
echo '!/dist' >> .gitignore | ||
|
||
git tag $VERSION | ||
git push origin refs/tags/$VERSION | ||
|
||
npm publish |