Skip to content

Commit 0a9a6ac

Browse files
committed
Fix release workflow to commit updated manifest version
- Add step to commit bumped manifest.json back to repository - Ensures source manifest stays in sync with released versions
1 parent 27d726d commit 0a9a6ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ jobs:
6868
pnpm -C packages/chrome-extension bump-manifest
6969
pnpm -C packages/chrome-extension build
7070
71+
- name: Commit updated manifest to repository
72+
if: steps.changesets.outputs.published == 'true'
73+
run: |
74+
git config --local user.email "[email protected]"
75+
git config --local user.name "GitHub Action"
76+
git add packages/chrome-extension/src/manifest.json
77+
git diff --staged --quiet || git commit -m "Update Chrome extension manifest version to ${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}"
78+
git push
79+
7180
- name: Package Chrome extension for release
7281
if: steps.changesets.outputs.published == 'true'
7382
working-directory: packages/chrome-extension/dist

0 commit comments

Comments
 (0)