From c13517ba949ac323372764b52ca0125fc489d706 Mon Sep 17 00:00:00 2001 From: Arslan Date: Sun, 22 Nov 2026 11:47:09 +0500 Subject: [PATCH 1/2] 0.2.1: publish with npm trusted publishing The release workflow now publishes through npm trusted publishing (OIDC) instead of the NPM_TOKEN secret, which has been removed. The publisher is configured on npmjs.com for leadsets/sdk and workflow release.yml. - release.yml: Node 24 (npm 11.5.1+ is needed for trusted publishing); npm publish without NODE_AUTH_TOKEN. Provenance is added automatically. - Version 0.2.1 so the new setup publishes once. No changes to the package itself. --- .github/workflows/release.yml | 11 ++++++----- CHANGELOG.md | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- src/version.ts | 2 +- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8185b25..8a1256e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.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 release.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' From 4b778fdb344ab3c5618ad1f5931f458924c60f63 Mon Sep 17 00:00:00 2001 From: Arslan Date: Sun, 22 Nov 2026 11:49:57 +0500 Subject: [PATCH 2/2] Rename the release workflow to publish.yml to match the npm trusted publisher --- .github/workflows/{release.yml => publish.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{release.yml => publish.yml} (94%) diff --git a/.github/workflows/release.yml b/.github/workflows/publish.yml similarity index 94% rename from .github/workflows/release.yml rename to .github/workflows/publish.yml index 8a1256e..c5077df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/publish.yml @@ -29,7 +29,7 @@ jobs: - run: npm run build - run: npm test # Trusted publishing: npm exchanges the workflow's OIDC token, no NPM_TOKEN secret. - # Configured on npmjs.com for leadsets/sdk, workflow release.yml. + # Configured on npmjs.com for leadsets/sdk, workflow publish.yml. - run: npm publish --access public - name: GitHub release env: