Skip to content

Commit f8331d9

Browse files
Mlaz-codeclaude
andcommitted
ci: restore OIDC publishing, bump 0.2.6 → 0.2.7
The npm Trusted Publisher binding (Sharp-API/sharpapi-ts → publish.yml) turns out to have been correctly configured all along — the OIDC 404 on v0.2.5 may have been a transient handshake issue or required the NPM_TOKEN publish (v0.2.6) to fully activate the package↔workflow trust on the npm side. Drop the NODE_AUTH_TOKEN env var so npm publish falls back to OIDC (no _authToken in .npmrc → npm uses the GitHub OIDC token). The NPM_TOKEN secret stays in the repo for break-glass. Cutting 0.2.7 as the smoke test. No source changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 271de3f commit f8331d9

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ jobs:
5454
# Only publish on an actual release event. workflow_dispatch
5555
# runs through test+build as a dry run but must not upload.
5656
#
57-
# Auth: NPM_TOKEN secret. The Trusted Publisher (OIDC) config at
57+
# Auth: Trusted Publisher (OIDC). npm picks up the GitHub OIDC
58+
# token automatically when no _authToken is configured. Trust is
59+
# registered at:
5860
# https://www.npmjs.com/package/@sharp-api/client/access
59-
# was returning 404 on PUT for v0.2.5 (silent permission denial),
60-
# so we fall back to the long-lived NPM_TOKEN. Re-enable OIDC by
61-
# confirming the Trusted Publisher binding still maps to this
62-
# workflow filename + repo + ref pattern after any rename.
63-
# --provenance still emits the SLSA attestation either way.
61+
# (Trusted Publishers → Sharp-API/sharpapi-ts → publish.yml).
62+
# NPM_TOKEN secret remains in the repo as a break-glass fallback
63+
# (add `env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}` back if
64+
# OIDC ever regresses to 404/permission-denied).
65+
# --provenance emits the SLSA attestation.
6466
if: github.event_name == 'release'
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6767
run: npm publish --provenance --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sharp-api/client",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "Official TypeScript/JavaScript client for the SharpAPI real-time sports betting odds API",
55
"type": "module",
66
"main": "./dist/index.cjs",

0 commit comments

Comments
 (0)