-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Sdk metamask #2594
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?
Sdk metamask #2594
Conversation
This workflow automates the testing and publishing of Node.js packages to GitHub Packages upon release creation.
Add workflow for testing and publishing Node.js packages
|
@Addausi is attempting to deploy a commit to the Consensys Team on Vercel. A member of the Team first needs to authorize it. |
| - run: npm ci | ||
| - run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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.
Workflow publishes private package that cannot be published
This workflow attempts to run npm publish to publish the package to GitHub Packages, but package.json has "private": true which prevents npm publishing. This documentation repository is not intended to be published as an npm package. The npm publish command would fail with an error on every release. This appears to be a copy-pasted GitHub workflow template that doesn't apply to this project.
| with: | ||
| node-version: 20 | ||
| - run: npm ci | ||
| - run: npm test |
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.
Workflow calls npm test but no test script exists
The build job runs npm test, but package.json has no test script defined in the scripts section. This would cause the workflow to fail with "missing script: test" error. This further confirms the workflow is a copy-pasted template that wasn't adapted for this project.
| - name: Build | ||
| run: | | ||
| npm install | ||
| grunt |
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.
Workflow uses Grunt but project doesn't have Grunt
The workflow runs grunt as a build step, but the project is a Docusaurus site with no Grunt dependency. The package.json shows this project uses npm run build (docusaurus build) and has no grunt or grunt-cli packages installed. This workflow will fail immediately when triggered with "command not found: grunt".
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [18.x, 20.x, 22.x] |
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.
Node version matrix conflicts with project's engine requirement
The workflow matrix tests Node versions 18.x, 20.x, and 22.x, but the project's package.json specifies "engines": { "node": "20.x" }. This means 2 out of 3 matrix configurations (18.x and 22.x) run against unsupported Node versions, which could produce misleading CI results - either false passes on unsupported runtimes or failures that aren't actual bugs.
|
|
|
||
| Tell them where to go, how often they can expect to get an update on a | ||
| reported vulnerability, what to expect if the vulnerability is accepted or | ||
| declined, etc. |
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.
SECURITY.md contains unmodified template with wrong versions
This file appears to be a GitHub template that wasn't customized. It references versions 5.1.x, 5.0.x, and 4.0.x, but the actual package version is 1.0.0. The placeholder instructions ("Use this section to tell people...") were left unchanged, which could confuse users trying to report security vulnerabilities.
Description
Issue(s) fixed
Fixes #
Preview
Checklist
External contributor checklist
Note
Introduces CI/CD and project metadata setup.
npm-grunt.ymlto build with Grunt across Node18.x/20.x/22.x, andnpm-publish-github-packages.ymlto run tests on release and publish to GitHub Packages.devcontainer/devcontainer.jsonusingmcr.microsoft.com/devcontainers/universal:2SECURITY.mdwith supported versions and vulnerability reporting guidanceWritten by Cursor Bugbot for commit c890c76. This will update automatically on new commits. Configure here.