From 055a4436490658f536e1850a43ad2c5e910ef86e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:58:34 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 7a06e22..311252c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 90 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-b0b2bad50557aa0fe95d42cd97c6b45e8c45f6f257950048545faafafc851a17.yml openapi_spec_hash: 4e26fcff8efa06e31f3b2bfc191a7006 -config_hash: 2b42d138d85c524e65fa7e205d36cc4a +config_hash: 3bdafb6b4c87eb841053bc9e9de60b48 From 886095149e61025945d3f3456776392160b4e1fd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:59:34 +0000 Subject: [PATCH 2/3] chore: update SDK settings --- .github/workflows/publish-npm.yml | 5 +++-- .github/workflows/release-doctor.yml | 3 +-- .stats.yml | 2 +- bin/check-release-environment | 4 ---- bin/publish-npm | 13 +++++++++++-- 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 77e0131..2d6ca54 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 @@ -28,5 +31,3 @@ jobs: - name: Publish to NPM run: | bash ./bin/publish-npm - env: - NPM_TOKEN: ${{ secrets.KNOCK_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index e23c9cb..9ab27fd 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,5 +17,4 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment - env: - NPM_TOKEN: ${{ secrets.KNOCK_NPM_TOKEN || secrets.NPM_TOKEN }} + diff --git a/.stats.yml b/.stats.yml index 311252c..85c7c65 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 90 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/knock%2Fknock-b0b2bad50557aa0fe95d42cd97c6b45e8c45f6f257950048545faafafc851a17.yml openapi_spec_hash: 4e26fcff8efa06e31f3b2bfc191a7006 -config_hash: 3bdafb6b4c87eb841053bc9e9de60b48 +config_hash: 32503026a45db991d0d102f25af40a77 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 45e8aa8..3d05c0b 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 yarn build cd dist @@ -57,5 +62,9 @@ else TAG="latest" fi +# Install OIDC compatible npm version +npm install --prefix ../oidc/ npm@11.6.2 + # Publish with the appropriate tag -yarn publish --tag "$TAG" +export npm_config_registry='https://registry.npmjs.org' +../oidc/node_modules/.bin/npm publish --tag "$TAG" From 33974004dca4c27723af10c7d73e2b6bf775b589 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:59:54 +0000 Subject: [PATCH 3/3] release: 1.29.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6103afc..b070f21 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.29.0" + ".": "1.29.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 19d2c55..1e1dad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.29.1 (2026-02-23) + +Full Changelog: [v1.29.0...v1.29.1](https://github.com/knocklabs/knock-node/compare/v1.29.0...v1.29.1) + +### Chores + +* update SDK settings ([8860951](https://github.com/knocklabs/knock-node/commit/886095149e61025945d3f3456776392160b4e1fd)) + ## 1.29.0 (2026-02-23) Full Changelog: [v1.28.0...v1.29.0](https://github.com/knocklabs/knock-node/compare/v1.28.0...v1.29.0) diff --git a/package.json b/package.json index ca25dc1..5d8d654 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@knocklabs/node", - "version": "1.29.0", + "version": "1.29.1", "description": "The official TypeScript library for the Knock API", "author": "Knock ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index ec0d2ee..1bb31c3 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.29.0'; // x-release-please-version +export const VERSION = '1.29.1'; // x-release-please-version