diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 48afbd2..e911be3 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -12,6 +12,9 @@ jobs: publish: name: publish runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v6 @@ -31,5 +34,3 @@ jobs: - name: Publish to NPM run: | bash ./bin/publish-npm - env: - NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index c6b3691..e88a07b 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,6 +17,4 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment - env: - NPM_TOKEN: ${{ secrets.OZ_API_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index c85fe68..9487e48 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ dist-deno /*.tgz .idea/ .eslintcache - +oidc diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c6cc872..2ce8412 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0-alpha.2" + ".": "1.1.0-alpha.3" } diff --git a/.stats.yml b/.stats.yml index 11ad6be..72cd80d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-a29592b2ba26cba9d89b95969d66506f49c08e140b76ce4aea4189e5c1dccc06.yml openapi_spec_hash: 27a5de1f891104d5e47904ad8e4b4bd1 -config_hash: 40327fb76b7cce7b97f23de9b8d48efb +config_hash: 60052b2c1c0862014416821aba875574 diff --git a/CHANGELOG.md b/CHANGELOG.md index a0722f1..6470ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.1.0-alpha.3 (2026-04-09) + +Full Changelog: [v1.1.0-alpha.2...v1.1.0-alpha.3](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.1.0-alpha.2...v1.1.0-alpha.3) + +### Features + +* **api:** api update ([6232343](https://github.com/warpdotdev/oz-sdk-typescript/commit/62323438ed928f147bb99fd35b5876261b219206)) +* **api:** manual updates ([2a9b043](https://github.com/warpdotdev/oz-sdk-typescript/commit/2a9b043a00e3989da708823538ad749606dd4467)) +* ian/stainless_yml ([3aaefbf](https://github.com/warpdotdev/oz-sdk-typescript/commit/3aaefbf82428c9ff07c9f3a179d023e73a0773d3)) + ## 1.1.0-alpha.2 (2026-04-09) Full Changelog: [v1.1.0-alpha.1...v1.1.0-alpha.2](https://github.com/warpdotdev/oz-sdk-typescript/compare/v1.1.0-alpha.1...v1.1.0-alpha.2) diff --git a/bin/check-release-environment b/bin/check-release-environment index e4b6d58..6b43775 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,10 +2,6 @@ errors=() -if [ -z "${NPM_TOKEN}" ]; then - errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets") -fi - lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/bin/publish-npm b/bin/publish-npm index a609989..4e094d7 100644 --- a/bin/publish-npm +++ b/bin/publish-npm @@ -2,7 +2,12 @@ set -eux -npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" +if [[ ${NPM_TOKEN:-} ]]; then + npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN" +elif [[ ! ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-} ]]; then + echo "ERROR: NPM_TOKEN must be set if not running in a Github Action with id-token permission" + exit 1 +fi pnpm build cd dist @@ -57,5 +62,8 @@ else TAG="latest" fi +# Install OIDC compatible npm version +npm install --prefix ../oidc/ npm@11.6.2 + # Publish with the appropriate tag -pnpm publish --no-git-checks --tag "$TAG" +pnpm publish --npm-path "$(cd ../ && pwd)/oidc/node_modules/.bin/npm" --no-git-checks --tag "$TAG" diff --git a/package.json b/package.json index ad6917e..8faf447 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oz-agent-sdk", - "version": "1.1.0-alpha.2", + "version": "1.1.0-alpha.3", "description": "The official TypeScript library for the Oz API API", "author": "Oz API <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 50ff2a7..3035deb 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.1.0-alpha.2'; // x-release-please-version +export const VERSION = '1.1.0-alpha.3'; // x-release-please-version