diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml new file mode 100644 index 0000000..581af4b --- /dev/null +++ b/.github/workflows/release-doctor.yml @@ -0,0 +1,20 @@ +name: Release Doctor +on: + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + release_doctor: + name: release doctor + runs-on: ubuntu-latest + if: github.repository == 'morphik-org/morphik-ts' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + + steps: + - uses: actions/checkout@v4 + + - name: Check release environment + run: | + bash ./bin/check-release-environment + env: diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/.stats.yml b/.stats.yml index 6744525..28b2858 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 89 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/morphik%2Fmorphik-8d3c4a3004d103142a96eaee97699ec1c0b5df304ec1b4804d5394b99a36939d.yml openapi_spec_hash: b77413da8a8d6532ea04ec0198add72b -config_hash: b3a76425ddbc7401632d1817c1f218e9 +config_hash: b31f7ecf9aa2235630e204955c58ce3b diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ece6b84 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +## 0.1.0 (2025-07-17) + +Full Changelog: [v0.0.1...v0.1.0](https://github.com/morphik-org/morphik-ts/compare/v0.0.1...v0.1.0) + +### Features + +* **api:** update via SDK Studio ([c78d82e](https://github.com/morphik-org/morphik-ts/commit/c78d82e75024b26adcc311693f8b49ef4ef9f2dc)) + + +### Chores + +* sync repo ([2173455](https://github.com/morphik-org/morphik-ts/commit/21734555d908ca2f7b2891af8480f3b27f5618d6)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fab94ee..48b8212 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,15 +42,15 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```sh -$ npm install git+ssh://git@github.com:stainless-sdks/morphik-typescript.git +$ npm install git+ssh://git@github.com:morphik-org/morphik-ts.git ``` Alternatively, to link a local copy of the repo: ```sh # Clone -$ git clone https://www.github.com/stainless-sdks/morphik-typescript -$ cd morphik-typescript +$ git clone https://www.github.com/morphik-org/morphik-ts +$ cd morphik-ts # With yarn $ yarn link diff --git a/README.md b/README.md index 8ea47c0..0930c39 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ It is generated with [Stainless](https://www.stainless.com/). ## Installation ```sh -npm install git+ssh://git@github.com:stainless-sdks/morphik-typescript.git +npm install git+ssh://git@github.com:morphik-org/morphik-ts.git ``` > [!NOTE] @@ -364,7 +364,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/morphik-typescript/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/morphik-org/morphik-ts/issues) with questions, bugs, or suggestions. ## Requirements diff --git a/bin/check-release-environment b/bin/check-release-environment new file mode 100644 index 0000000..6b43775 --- /dev/null +++ b/bin/check-release-environment @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +errors=() + +lenErrors=${#errors[@]} + +if [[ lenErrors -gt 0 ]]; then + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" + diff --git a/package.json b/package.json index 58e55b4..0dba70c 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "morphik", - "version": "0.0.1", + "version": "0.1.0", "description": "The official TypeScript library for the Morphik API", "author": "Morphik <>", "types": "dist/index.d.ts", "main": "dist/index.js", "type": "commonjs", - "repository": "github:stainless-sdks/morphik-typescript", + "repository": "github:morphik-org/morphik-ts", "license": "Apache-2.0", "packageManager": "yarn@1.22.22", "files": [ diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..1ebd0bd --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,64 @@ +{ + "packages": { + ".": {} + }, + "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "include-v-in-tag": true, + "include-component-in-tag": false, + "versioning": "prerelease", + "prerelease": true, + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "pull-request-header": "Automated Release PR", + "pull-request-title-pattern": "release: ${version}", + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styles" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ], + "release-type": "node", + "extra-files": ["src/version.ts", "README.md"] +} diff --git a/scripts/publish-npm.sh b/scripts/publish-npm.sh deleted file mode 100755 index 9e2d628..0000000 --- a/scripts/publish-npm.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# Build and publish Morphik SDK to npm - -set -e # Exit on error - -echo "🔨 Building SDK..." -yarn build - -if [ ! -d "dist" ]; then - echo "❌ Build failed: dist directory not found" - exit 1 -fi - -echo "📦 Publishing to npm..." -cd dist - -# Check if logged in to npm -if ! npm whoami &> /dev/null; then - echo "❌ Not logged in to npm. Please run 'npm login' first." - exit 1 -fi - -# Publish with public access -npm publish --access public - -echo "✅ Successfully published morphik to npm!" -echo "📝 Install with: npm install morphik" \ No newline at end of file diff --git a/src/version.ts b/src/version.ts index ecebcdd..1baa228 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.1'; +export const VERSION = '0.1.0'; // x-release-please-version