Skip to content

Commit cf4f4b8

Browse files
committed
Fix cli to push tag in the repo
1 parent e65952f commit cf4f4b8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ jobs:
5858
npm run build
5959
git add package.json package-lock.json dist/
6060
git commit -m "Packaging ${NEW_VERSION} with rebuilt /dist"
61-
git tag "v${NEW_VERSION}"
61+
git tag -a "v${NEW_VERSION}" -m "v${NEW_VERSION}"
62+
echo "NEW_VERSION=${NEW_VERSION}" >> "$GITHUB_ENV"
6263
6364
- name: Push to GitHub
64-
run: git push origin staging --follow-tags
65+
run: |
66+
git push origin staging
67+
git push origin "v${NEW_VERSION}"
6568
6669
- name: Publish to npm with provenance
6770
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)