Skip to content

Commit

Permalink
ci: refactor script
Browse files Browse the repository at this point in the history
  • Loading branch information
twlite committed Mar 11, 2023
1 parent 3c1e009 commit 8040da9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/npm/src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -e
# Parse the package name and version from the release name
if [[ $GITHUB_REF =~ ^refs/tags/ ]]; then
RELEASE_NAME=${GITHUB_REF#refs/tags/}
COMMIT_MESSAGE="chore($PACKAGE_NAME): release v$PACKAGE_VERSION"
elif [[ $GITHUB_REF =~ ^refs/heads/ ]]; then
echo "Skipping action: this action should only be triggered by a tag, not a branch"
exit 0
Expand Down Expand Up @@ -53,5 +52,5 @@ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"

# Add all changes and commit with the specified commit message
git add .
git commit -m "$COMMIT_MESSAGE"
git commit -m "chore($PACKAGE_NAME): release v$PACKAGE_VERSION"
git push

0 comments on commit 8040da9

Please sign in to comment.