File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 4949 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
5050 shell : bash
5151 - if : steps.packagejson.outputs.exists == 'true'
52- name : Check package-lock version
52+ name : Determine what node version to use
5353 # This workflow is from our own org repo and safe to reference by 'master'.
5454 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
55+ with :
56+ node-version : ${{ vars.NODE_VERSION }}
5557 id : lockversion
5658 - if : steps.packagejson.outputs.exists == 'true'
5759 name : Setup Node.js
Original file line number Diff line number Diff line change 5353 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
5454 shell : bash
5555 - if : steps.packagejson.outputs.exists == 'true'
56- name : Check package-lock version
56+ name : Determine what node version to use
5757 # This workflow is from our own org repo and safe to reference by 'master'.
5858 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
59+ with :
60+ node-version : ${{ vars.NODE_VERSION }}
5961 id : lockversion
6062 - if : steps.packagejson.outputs.exists == 'true'
6163 name : Setup Node.js
@@ -100,15 +102,17 @@ jobs:
100102 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
101103 shell : bash
102104 - if : steps.packagejson.outputs.exists == 'true'
103- name : Check package-lock version
105+ name : Determine what node version to use
104106 # This workflow is from our own org repo and safe to reference by 'master'.
105107 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
108+ with :
109+ node-version : ${{ vars.NODE_VERSION }}
106110 id : lockversion
107111 - if : steps.packagejson.outputs.exists == 'true'
108112 name : Setup Node.js
109113 uses : actions/setup-node@v4
110114 with :
111- node-version : " 22.14.0 "
115+ node-version : " ${{ steps.lockversion.outputs.version }} "
112116 registry-url : " https://registry.npmjs.org"
113117 - if : steps.packagejson.outputs.exists == 'true'
114118 name : Install dependencies
Original file line number Diff line number Diff line change 2525 id : packagejson
2626 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
2727 - if : steps.packagejson.outputs.exists == 'true'
28- name : Check package-lock version
28+ name : Determine what node version to use
2929 # This workflow is from our own org repo and safe to reference by 'master'.
3030 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR
31+ with :
32+ node-version : ${{ vars.NODE_VERSION }}
3133 id : lockversion
3234 - if : steps.packagejson.outputs.exists == 'true'
3335 name : Setup Node.js
You can’t perform that action at this time.
0 commit comments