Skip to content

fix: replace testing-action-deploy with inline OIDC publish steps - #100

Merged
Percy2Live merged 1 commit into
mainfrom
fix/deploy-oidc-77
Jul 8, 2026
Merged

Percy2Live merged 1 commit into
mainfrom
fix/deploy-oidc-77

Conversation

@Percy2Live

Copy link
Copy Markdown
Owner

Problem

The deploy job in test-and-release.yml failed with Cannot find module 'sigstore' (npm/cli#9722). The ioBroker/testing-action-deploy@v1 composite action runs npm install -g npm@latest, which upgrades to npm 12.0.0 — a version with a known bug where the sigstore module is missing, causing provenance-enabled publishes to crash.

Fix

Replace ioBroker/testing-action-deploy@v1 with inline deploy steps that use the npm CLI bundled with Node.js 24.x (npm 11.x). This version supports trusted publishing (OIDC) and automatic provenance signing without the sigstore regression.

Inline steps:

  1. Checkout + setup-node 24.x (with npm cache)
  2. Extract version from tag
  3. npm ci + npm run build
  4. npm publish (OIDC auto-detected, provenance automatic)
  5. Create GitHub Release via softprops/action-gh-release@v3

Verification

  • npm run check ✅
  • npm run lint ✅
  • Workflow YAML validated

Context

Refs #77 — npm Trusted Publishing is configured on npmjs.com. The previous deploy attempt (run #107) failed due to the npm 12 sigstore bug. This PR fixes the deploy pipeline.

Risk

risk:low — workflow-only change, no adapter code modified

The ioBroker testing-action-deploy@v1 runs 'npm install -g npm@latest' which
upgrades to npm 12.0.0 — a version with a known bug (npm/cli#9722) where the
sigstore module is missing, causing provenance-enabled publishes to fail.

Replace the composite action with inline deploy steps that use the npm CLI
version bundled with Node.js 24.x (npm 11.x), which supports trusted publishing
and automatic provenance signing without the sigstore regression.

Refs #77
@Percy2Live
Percy2Live enabled auto-merge (squash) July 8, 2026 22:56
@Percy2Live
Percy2Live merged commit ced2252 into main Jul 8, 2026
8 checks passed
@Percy2Live
Percy2Live deleted the fix/deploy-oidc-77 branch July 8, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant