Commit 6a665de
ci: switch back to NPM_TOKEN auth (granular token) — keep provenance
Trusted publishing requires per-package UI setup on npmjs.com, which is
fine for one package but doesn't scale across many. Reverting auth to a
granular access token while keeping the provenance attestation:
- `.github/workflows/ci.yml`: re-add `NPM_TOKEN: ${{ secrets.NPM_TOKEN }}`
for auth. Keep `id-token: write` permission — provenance signing uses
the OIDC token regardless of auth method.
- `publishConfig.provenance: true` stays in `package.json`, so the npm
package page still gets the "Built and signed on GitHub Actions" badge
linking back to the workflow run.
Maintainer setup
- npmjs.com → Account → Access Tokens → Generate New → Granular Access
Token. Scope: read+write on `react-json-logic` (or a wildcard like
`react-json-logic*` / `@uinaf/*` for org-wide reuse).
- GH repo → Settings → Secrets → New repository secret `NPM_TOKEN`. Or
set as an org-level secret to share across uinaf OSS repos.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4af517f commit 6a665de
3 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments