diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 0c471d1..fd4e684 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -28,5 +31,3 @@ jobs: - name: Publish to NPM run: | bash ./bin/publish-npm - env: - NPM_TOKEN: ${{ secrets.OPENLAYER_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index b964552..45a5e87 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -17,5 +17,3 @@ jobs: - name: Check release environment run: | bash ./bin/check-release-environment - env: - NPM_TOKEN: ${{ secrets.OPENLAYER_NPM_TOKEN || secrets.NPM_TOKEN }} diff --git a/.gitignore b/.gitignore index 8f7916d..eb0af94 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,8 @@ dist-deno /*.tgz .idea/ .eslintcache +oidc .env **/.env **/.openlayer examples/bedrock/output - diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 712789e..716d004 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.29.1" + ".": "0.30.0" } diff --git a/.stats.yml b/.stats.yml index ae97cfa..0deea56 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,3 +1,3 @@ configured_endpoints: 31 openapi_spec_hash: a574ef9082e992c25120554886a9ab7a -config_hash: f8fb410519268f9f228074c9344acc1f +config_hash: 2d4f9621ceae4bb25977853a964a0e54 diff --git a/CHANGELOG.md b/CHANGELOG.md index 48fd8c5..8cc6018 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.30.0 (2026-07-01) + +Full Changelog: [v0.29.1...v0.30.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.29.1...v0.30.0) + +### Features + +* **api:** manual updates ([b962e62](https://github.com/openlayer-ai/openlayer-ts/commit/b962e62df8139ad9eb58eb19613e2a3d9fc0db0d)) + ## 0.29.1 (2026-06-17) Full Changelog: [v0.29.0...v0.29.1](https://github.com/openlayer-ai/openlayer-ts/compare/v0.29.0...v0.29.1) 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" diff --git a/package.json b/package.json index 1deab96..f033a44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openlayer", - "version": "0.29.1", + "version": "0.30.0", "description": "The official TypeScript library for the Openlayer API", "author": "Openlayer ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index b8b7a27..91a9bb6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.29.1'; // x-release-please-version +export const VERSION = '0.30.0'; // x-release-please-version