Skip to content

Conversation

@PreciousOritsedere
Copy link

@PreciousOritsedere PreciousOritsedere commented Jan 21, 2026

Fixes applied

  • Removed token authentication: ${{ secrets.NPM_TOKEN }} from the publish steps.

  • Added OIDC permissions: id-token: write at the workflow and job levels.

  • Updated npm version: Added npm install -g npm@latest to ensure npm >= 11.5.1 (required for OIDC).

  • Switched to direct npm publish: Replaced JS-DevTools/npm-publish with direct npm publish commands so npm uses the OIDC token from setup-node.

  • Fixed repository URL case: Updated package.json repository URL from git+https://github.com/solidos/solid-ui.git to git+https://github.com/SolidOS/solid-ui.git to match the GitHub repository name.

Copilot AI review requested due to automatic review settings January 21, 2026 10:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes Node.js version specifications and updates the npm publish workflow configuration.

Changes:

  • Standardized Node.js version format from string notation (e.g., '20.x') to numeric notation (e.g., 20)
  • Added Node.js 24 to the test matrix
  • Removed explicit NPM_TOKEN configuration from publish steps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- run: npm run doc
- name: Save build
if: matrix.node-version == '20.x'
if: matrix.node-version == '20'
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type mismatch in comparison: matrix.node-version is now a number (20) but is being compared to a string ('20'). This condition will always evaluate to false. Remove the quotes to compare numbers: if: matrix.node-version == 20

Suggested change
if: matrix.node-version == '20'
if: matrix.node-version == 20

Copilot uses AI. Check for mistakes.
…: write is required for OIDC at the job level, not just the workflow level.

Replaced JS-DevTools/npm-publish with direct npm publish commands — setup-node with registry-url configures npm to use OIDC, and direct npm publish will use that configuration.
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.

2 participants