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
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to npm

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:

permissions:
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
environment: Publish
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish
run: npm publish --access public
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [1.0.0] - 2026-08-08

### Added

- Publish workflow: builds package and publishes to npm when vX.X.X tag is pushed.

### Changed

- First stable release - no functional changes from `0.1.0`.

## [0.1.0] - 2026-08-08

### Added
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# zod-transformers

[![CI](https://github.com/figulusproject/zod-transformers/actions/workflows/ci.yml/badge.svg)](https://github.com/figulusproject/zod-transformers/actions/workflows/ci.yml)
[![NPM version](https://badge.fury.io/js/zod-transformers.svg)](http://badge.fury.io/js/zod-transformers)

> _Everyone has the right to resist occupation._

A collection of reusable Zod transform/superRefine schema factories for common patterns: empty-string coercion, stringified JSON/JSONC/TOML/YAML, prefix stripping, numeric strings, and filesystem-path validation.

## Installation
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zod-transformers",
"version": "0.1.0",
"version": "1.0.0",
"description": "A collection of reusable Zod transform/superRefine schema factories",
"keywords": [
"zod",
Expand Down
Loading