-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send message to open UI's create notebook modal instead of the extens… (
#36) * Send message to open UI's create notebook modal instead of the extension's * Allow alpha versions and move publish to scripts folder * Fix linting * Get version from tag * Update message action
- Loading branch information
1 parent
cc39fca
commit 3264a7a
Showing
4 changed files
with
41 additions
and
58 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 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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
LATEST_GIT_TAG=$(git describe --tags --abbrev=0) | ||
# Remove "v" from the start of the tag e.g. v1.0.0 -> 1.0.0 | ||
LATEST_GIT_TAG="${LATEST_GIT_TAG:1}" | ||
# Update package.json's version field | ||
npm version $LATEST_GIT_TAG --no-commit-hooks --no-git-tag-version | ||
|
||
echo "Updating package.json with version $LATEST_GIT_TAG" | ||
if [[ $LATEST_GIT_TAG == *"beta"* ]]; | ||
then | ||
echo "Publishing beta version $LATEST_GIT_TAG to npm"; | ||
yarn publish --new-version $LATEST_GIT_TAG --no-git-tag-version --no-commit-hooks --access public --tag beta | ||
elif [[ $LATEST_GIT_TAG == *"alpha"* ]]; | ||
then | ||
echo "Publishing alpha version $LATEST_GIT_TAG to npm"; | ||
yarn publish --new-version $LATEST_GIT_TAG --no-git-tag-version --no-commit-hooks --access public --tag alpha | ||
else | ||
echo "Publishing new version $LATEST_GIT_TAG to npm"; | ||
yarn publish --new-version $LATEST_GIT_TAG --no-git-tag-version --no-commit-hooks --access public | ||
fi |
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 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