Add NPM_TOKEN support to node and test/npm actions #2

Merged
deac merged 1 commits from STAT-133 into main 2026-09-17 15:49:52 +00:00
Owner

Fixes CI failures (E401) when a consuming repo installs a private @stat-tackler npm package, since node@v1 and test/npm@v1 never authenticated against the private Gitea registry.

Changes

  • Add an optional NPM_TOKEN input to node and test/npm composite actions
  • When set, writes .npmrc scoping @stat-tackler to the private registry before npm ci
  • No-op for existing consumers that do not pass the input

Test Plan

  • stat-tackler-scorekeeper PR (STAT-133) passes its Node Build/Test Check using this branch, confirming npm ci authenticates against the private registry
Fixes CI failures (E401) when a consuming repo installs a private @stat-tackler npm package, since node@v1 and test/npm@v1 never authenticated against the private Gitea registry. ## Changes - Add an optional NPM_TOKEN input to node and test/npm composite actions - When set, writes .npmrc scoping @stat-tackler to the private registry before npm ci - No-op for existing consumers that do not pass the input ## Test Plan - [ ] stat-tackler-scorekeeper PR (STAT-133) passes its Node Build/Test Check using this branch, confirming npm ci authenticates against the private registry
deac added 1 commit 2026-09-17 15:48:56 +00:00
npm ci fails with E401 when a consuming repo's package-lock.json pins a
package to the private Gitea npm registry, since these composite actions
never write an .npmrc or set a registry auth token. Add an optional
NPM_TOKEN input that writes .npmrc before install; existing consumers that
don't pass it are unaffected.
deac merged commit 53165c2d53 into main 2026-09-17 15:49:52 +00:00
deac deleted branch STAT-133 2026-09-17 15:49:52 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pixel-parasol-public/gitea-actions#2