Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .block
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"blocked": [".claude-plugin/plugin.json"],
"blocked": [".claude-plugin/plugin.json", "opencode/package.json"],
"guide": "The CI pipeline updates the plugin version - do not modify manually."
}
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,27 @@ jobs:
f.write('\n')
"

- name: Update CHANGELOG version
run: |
python -c "
import datetime, pathlib, sys
version = '${{ needs.version.outputs.majorMinorPatch }}'
today = datetime.date.today().strftime('%Y-%m-%d')
p = pathlib.Path('CHANGELOG.md')
text = p.read_text(encoding='utf-8')
if '## Unreleased' not in text:
print('No ## Unreleased section found, skipping')
sys.exit(0)
text = text.replace('## Unreleased', f'## v{version} ({today})', 1)
p.write_text(text, encoding='utf-8')
print(f'Updated CHANGELOG.md: ## Unreleased -> ## v{version} ({today})')
"

- name: Commit and tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .claude-plugin/plugin.json opencode/package.json
git add .claude-plugin/plugin.json opencode/package.json CHANGELOG.md
git commit -m "Bump version to ${{ needs.version.outputs.majorMinorPatch }}"
git push origin main
git tag -a "v${{ needs.version.outputs.majorMinorPatch }}" -m "Release v${{ needs.version.outputs.majorMinorPatch }}"
Expand Down