Skip to content

Commit

Permalink
update docs, add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
camflan committed Dec 9, 2024
1 parent dd53037 commit b42c468
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@camflan/valibot-openapi-generator",
"version": "2024.12.13",
"version": "2024.12.14",
"exports": {
".": "./mod.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valibot-openapi-generator",
"version": "2024.12.13",
"version": "2024.12.14",
"description": "",
"type": "module",
"sideEffects": false,
Expand Down
2 changes: 1 addition & 1 deletion src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type {
const DEFAULT_TITLE = "Valibot schema documentation";
const DEFAULT_DESCRIPTION = "Development documentation";

/** getOpenAPISpecs
/**
* Combines DescribedRoutes into a single OpenAPI document.
*
* @returns OpenAPIV3.Document
Expand Down
2 changes: 1 addition & 1 deletion src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type HandleSchemaOptions = {
config: OpenAPIRouteHandlerConfig;
};

/** describeRoute
/**
* Creates a route description that will be used by getOpenAPISpecs to combine
* into a single OpenAPI spec document.
*
Expand Down

0 comments on commit b42c468

Please sign in to comment.