Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
16 changes: 13 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v*.*.*" # Triggers on version tags like v0.1.0, v1.2.3, etc.
- "v*.*.*-dev.*" # Triggers on dev pre-release tags like v0.2.1-dev.1734197345

jobs:
publish:
Expand All @@ -18,12 +19,21 @@ jobs:
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Run tests
run: deno test -A

- name: Extract version from tag
id: get_version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Publish to JSR
run: deno publish
run: |
if [[ "${{ steps.get_version.outputs.version }}" == *"-dev."* ]]; then
deno publish --set-version ${{ steps.get_version.outputs.version }}
else
deno publish
fi
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,58 @@
> **Policy**: Concise entries for user-visible changes since last tag. One-line
> per change. Ignore internal cleanup, specs, and test-only changes.

## [Unreleased]

## [0.3.0] - 2024-12-14

### Changed

- **BREAKING**: Major architectural simplification - hooks are now simple
command arrays instead of complex objects with glob patterns
- **BREAKING**: Removed built-in hooks (`deno-fmt`, `deno-lint`, `deno-test`) -
use `deno task fmt`, `deno task lint`, `deno task test` instead
- **BREAKING**: Configuration format simplified - hooks are now just arrays of
shell commands
- Generated hook scripts are now self-contained with no dependencies on
deno-hooks runtime
- Hook scripts use `set -e` for fail-fast behavior

### Removed

- File glob pattern matching and `pass_filenames` logic (file filtering is now
git's job)
- Built-in hook executors (deno-fmt, deno-lint, deno-test)
- Runtime execution system (src/run.ts, src/executor.ts, src/files.ts)
- Complex hook type definitions

### Added

- Self-contained hook scripts that work without deno-hooks installed
- Support for any shell command in hooks (not just deno commands)
- Success message "✓ All hooks passed" after successful hook execution
- New examples: advanced.yml and deno-json-config.json

## [0.2.1] - 2024-12-14

### Added

- Dev pre-release tagging workflow with `deno task tag-dev` for testing JSR
installations before stable releases
- `deno task tag` command for creating stable releases with automated testing
- `deno task test-all` combining unit and integration tests
- GitHub Actions support for publishing dev pre-releases (e.g.,
`0.2.1-dev.1734197345`)

- Version management script with `deno task version` command for displaying,
bumping (patch/minor/major), and tagging releases

### Fixed

- Critical bug: JSR installations now generate valid hook paths with `jsr:`
protocol instead of invalid filesystem paths (fixes #9)
- Integration tests now properly validate hook path formats to catch path
generation bugs

## [0.2.0] - 2024-12-14

### Changed
Expand Down
Loading