Skip to content

Commit 8087445

Browse files
Mlaz-codeclaude
andcommitted
ci: re-enable NPM_TOKEN fallback (OIDC test failed), bump to 0.2.8
v0.2.7 OIDC test repeated the same 404 we saw on v0.2.5. Trusted Publisher binding IS visible on npmjs.com but isn't authenticating the publish — likely needs the package access mode to flip from "Require 2FA OR token" to "Require 2FA AND disallow tokens" on the npm UI to fully activate OIDC. Restoring NPM_TOKEN env var until that's tested. v0.2.7 release deleted (orphan tag). Cutting v0.2.8. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f8331d9 commit 8087445

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,16 @@ 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: Trusted Publisher (OIDC). npm picks up the GitHub OIDC
58-
# token automatically when no _authToken is configured. Trust is
59-
# registered at:
60-
# https://www.npmjs.com/package/@sharp-api/client/access
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.
57+
# Auth: NPM_TOKEN secret. Trusted Publisher (OIDC) is registered
58+
# at https://www.npmjs.com/package/@sharp-api/client/access but
59+
# tested twice (v0.2.5, v0.2.7) — both attempts returned the
60+
# 404/permission-denied mask. Likely the package access mode
61+
# ("Require 2FA OR token") needs to flip to "disallow tokens" on
62+
# npm.js to fully activate OIDC. Until then NPM_TOKEN is the
63+
# only auth path that works. Drop NODE_AUTH_TOKEN env once OIDC
64+
# is confirmed publishing on a follow-up test release.
65+
# --provenance still emits the SLSA attestation.
6666
if: github.event_name == 'release'
67+
env:
68+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6769
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.7",
3+
"version": "0.2.8",
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)