-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Create npm-grunt.yml #84574
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
Create npm-grunt.yml #84574
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,28 @@ | ||||||||||||||||||||||||||||
name: NodeJS with Grunt | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
on: | ||||||||||||||||||||||||||||
push: | ||||||||||||||||||||||||||||
branches: [ "canary" ] | ||||||||||||||||||||||||||||
pull_request: | ||||||||||||||||||||||||||||
branches: [ "canary" ] | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
jobs: | ||||||||||||||||||||||||||||
build: | ||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
strategy: | ||||||||||||||||||||||||||||
matrix: | ||||||||||||||||||||||||||||
node-version: [18.x, 20.x, 22.x] | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
- name: Use Node.js ${{ matrix.node-version }} | ||||||||||||||||||||||||||||
uses: actions/setup-node@v4 | ||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||
node-version: ${{ matrix.node-version }} | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
- name: Build | ||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||
npm install | ||||||||||||||||||||||||||||
grunt | ||||||||||||||||||||||||||||
Comment on lines
+25
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The workflow attempts to run View DetailsAnalysisGitHub Actions workflow uses wrong package manager and nonexistent build toolWhat fails: How to reproduce: # Check package manager configuration
grep packageManager package.json # Shows "[email protected]"
ls -la | grep lock # Only pnpm-lock.yaml exists
# Verify no Grunt
find . -name "Gruntfile.*" # No results
grep -i grunt package.json # No grunt dependencies
grunt # Command not found (exit 127) Result: The workflow would fail at both steps:
Expected: All other workflows in Fix: Updated workflow to use corepack + pnpm and replace |
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.
This workflow might fail because it doesn't install the Grunt CLI before running the
grunt
command. Consider either:Adding
npm install -g grunt-cli
before the grunt command:Or using npx to run the locally installed grunt:
Alternatively, ensure grunt-cli is included in the project's package.json dependencies.
Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.