Skip to content

Commit 27ef94d

Browse files
committed
[CI/CD] push version script
1 parent 23252c7 commit 27ef94d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,17 @@ jobs:
5050
run: yarn workspaces foreach --all --topological --parallel --no-private run build
5151
continue-on-error: true
5252

53-
- name: Bump version & create tag (only on main branch)
53+
- name: Bump version & commit (only on main)
5454
if: github.ref == 'refs/heads/main'
5555
run: |
5656
yarn workspaces foreach --all version patch
57+
58+
git config user.name "github-actions[bot]"
59+
git config user.email "github-actions[bot]@users.noreply.github.com"
60+
git add -A
61+
git commit -m "chore(release): bump versions"
62+
git tag v$(jq -r .version package.json)
63+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
5764
git push --follow-tags
5865
5966
- name: Publish to npm using yarn workspaces

0 commit comments

Comments
 (0)