diff --git a/.github/workflows/release.yml b/.github/workflows/publish.yml similarity index 69% rename from .github/workflows/release.yml rename to .github/workflows/publish.yml index 8185b25..c5077df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: permissions: contents: write - id-token: write # npm provenance + id-token: write # npm trusted publishing (OIDC) and provenance jobs: publish: @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + # npm trusted publishing needs npm 11.5.1+, which ships with Node 24. + node-version: 24 registry-url: https://registry.npmjs.org cache: npm - run: npm ci @@ -27,9 +28,9 @@ jobs: - run: npm run typecheck - run: npm run build - run: npm test - - run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # Trusted publishing: npm exchanges the workflow's OIDC token, no NPM_TOKEN secret. + # Configured on npmjs.com for leadsets/sdk, workflow publish.yml. + - run: npm publish --access public - name: GitHub release env: GH_TOKEN: ${{ github.token }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8291948..1886cf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/). +## [0.2.1] - 2026-11-22 + +### Changed + +- Published from GitHub Actions with npm trusted publishing (OIDC) and provenance, without a + long-lived npm token. No changes to the package itself. + ## [0.2.0] - 2026-11-19 ### Added @@ -40,6 +47,7 @@ All notable changes to this package are documented here. The format follows - Parsed rate-limit headers on `lastResponse.rateLimit`. - ESM and CommonJS builds with type declarations; no runtime dependencies. +[0.2.1]: https://github.com/leadsets/sdk/releases/tag/v0.2.1 [0.2.0]: https://github.com/leadsets/sdk/releases/tag/v0.2.0 [0.1.1]: https://github.com/leadsets/sdk/releases/tag/v0.1.1 [0.1.0]: https://github.com/leadsets/sdk/releases/tag/v0.1.0 diff --git a/package-lock.json b/package-lock.json index ca384e8..7418c5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@leadsetsai/sdk", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@leadsetsai/sdk", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "devDependencies": { "@biomejs/biome": "^2.6.6", diff --git a/package.json b/package.json index 3a21605..05df7ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leadsetsai/sdk", - "version": "0.2.0", + "version": "0.2.1", "description": "Official TypeScript and JavaScript SDK for the Leadsets B2B data API: people and company search, enrichment, email verification and web scraping.", "license": "MIT", "author": "Leadsets", diff --git a/src/version.ts b/src/version.ts index 5c5211b..9167fe9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.2.0' +export const VERSION = '0.2.1'