fix: use jq instead of node for package name extraction
jq is available in GitHub Actions without needing Node.js setup first. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -28,7 +28,7 @@ jobs:
|
||||
id: package_name
|
||||
working-directory: ./headlamp-sealed-secrets
|
||||
run: |
|
||||
PKG_NAME=$(node -p "require('./package.json').name")
|
||||
PKG_NAME=$(jq -r '.name' package.json)
|
||||
echo "name=${PKG_NAME}" >> $GITHUB_OUTPUT
|
||||
echo "Package name: ${PKG_NAME}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user