Skip to content

Commit

Permalink
Export the global NODE_PATH for versioning tools
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Feb 7, 2025
1 parent 7d5a6ef commit bb39410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/flowzone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ jobs:
versionist@^7.0.3
npm ls -g
echo "NODE_PATH=$(npm root --quiet -g)" >>"${GITHUB_ENV}"
- name: Generate changelog
if: inputs.disable_versioning != true
Expand All @@ -1224,12 +1225,8 @@ jobs:
with:
result-encoding: json
script: |
const path = require('path');
const { execSync } = require('child_process');
// Get global node_modules path
const globalNodeModules = execSync('npm root -g').toString().trim();
const { runBalenaVersionist } = require(path.join(globalNodeModules, 'balena-versionist'));
const { runBalenaVersionist } = require('balena-versionist');
let version;
try {
Expand Down

0 comments on commit bb39410

Please sign in to comment.