Skip to content

Commit

Permalink
Merge pull request #36 from cybozu/fix-git-push
Browse files Browse the repository at this point in the history
FIx `git push` after `npm publish`
  • Loading branch information
sosukesuzuki authored Oct 1, 2023
2 parents 24a72d9 + 6fb83f1 commit 011443f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion es/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ VERSION=${TAG#v}
npm version $VERSION --no-git-tag-version --workspaces
npm publish --workspaces --access=public

# print current branch for debugging
git rev-parse --abbrev-ref HEAD
# print diff for debugging
git diff

git add .
git commit -m "Release $VERSION"
git push origin main

# print repository name for debugging
echo $GITHUB_REPOSITORY

git push https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git

0 comments on commit 011443f

Please sign in to comment.