-
Notifications
You must be signed in to change notification settings - Fork 41
Updated publish workflow #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
.github/workflows/ci.yml
Outdated
| - run: npm run doc | ||
| - name: Save build | ||
| if: matrix.node-version == '20.x' | ||
| if: matrix.node-version == '20' |
Copilot
AI
Jan 21, 2026
There was a problem hiding this comment.
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
| if: matrix.node-version == '20' | |
| if: matrix.node-version == 20 |
…: 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.
…sure OIDC support.
….git to match the actual GitHub repository name.
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.