Skip to content

Commit c286bd8

Browse files
committed
refactor: another try
1 parent 6c03810 commit c286bd8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,22 @@ jobs:
6868
# this expects you to have a script called changeset:release which does a build for your packages and calls changeset publish
6969
publish: pnpm run changeset:release
7070
commit: "chore: version packages" # we need to fulfill commitlint based rules
71-
version: "pnpm changeset version && pnpm install && git add . && git commit -m 'chore: update versions and lockfile'"
7271
env:
7372
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7473
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7574
NPM_CONFIG_PROVENANCE: true
7675
HUSKY: 0 # Disable Husky hooks in CI
76+
77+
- name: Update lockfile
78+
run: |
79+
pnpm install
80+
git config user.name "github-actions[bot]"
81+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
82+
git add .
83+
git commit -m "chore: version packages and update lockfile" || echo "No changes to commit"
84+
85+
- name: Push changes
86+
uses: ad-m/[email protected]
87+
with:
88+
github_token: ${{ secrets.GITHUB_TOKEN }}
89+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)