1
0
mirror of synced 2026-01-01 09:04:46 -05:00

print current Node version inside script (#23182)

This commit is contained in:
Peter Bengtsson
2021-11-29 16:19:16 -05:00
committed by GitHub
parent 8dddd990a6
commit 3cae972349

View File

@@ -67,6 +67,10 @@ jobs:
BUILD_ACTIONS_RUN_ID: ${{ env.BUILD_ACTIONS_RUN_ID }}
with:
script: |
// Curious about what version of node you get
console.log('Node version:', process.version)
// In order to find out the PR info for a forked repo, we must query
// the API for more info based on the originating workflow run
const { BUILD_ACTIONS_RUN_ID } = process.env