Skip to content

Commit 5f6cc28

Browse files
committed
show actual node version
1 parent 22e58b4 commit 5f6cc28

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ jobs:
2727
cache: npm
2828
- name: Install
2929
run: npm ci
30+
- name: Node version
31+
id: version
32+
run: echo "node-version=$(node -v)" >> $GITHUB_OUTPUT
3033
- name: Test
3134
id: test
3235
run: npm test
3336
continue-on-error: ${{ matrix.node-version == 'latest' }}
3437
- name: Fail
3538
if: ${{ matrix.node-version == 'latest' && steps.test.outcome != 'success' }}
3639
run: |
37-
echo "Latest Node.js version ${{ matrix.node-version }} failed"
40+
echo "Node.js ${{ matrix.node-version }} (${{ steps.version.outputs.node-version }}) failed"
3841
exit 0

0 commit comments

Comments
 (0)