Skip to content

Commit

Permalink
Merge pull request #2 from alvesvaren/changesets
Browse files Browse the repository at this point in the history
Add changesets
  • Loading branch information
alvesvaren authored Nov 23, 2023
2 parents bb988f9 + 2750020 commit 429542d
Show file tree
Hide file tree
Showing 6 changed files with 1,951 additions and 23 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
5 changes: 5 additions & 0 deletions .changeset/angry-months-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"zod-to-openai-tool": patch
---

Add changesets
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"scripts": {
"test": "vitest",
"dev": "tsx watch examples/basic-usage.ts",
"build": "tsc && tsc -p tsconfig-cjs.json",
"prepublish": "pnpm run build"
"build": "tsc && tsc -p tsconfig-cjs.json"
},
"files": [
"dist",
Expand All @@ -34,6 +33,7 @@
"author": "Alve Svarén",
"license": "ISC",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/node": "^20.9.1",
"openai": "^4.19.0",
"prettier": "^3.1.0",
Expand Down
Loading

0 comments on commit 429542d

Please sign in to comment.