|
53 | 53 | run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT |
54 | 54 | shell: bash |
55 | 55 | - if: steps.packagejson.outputs.exists == 'true' |
56 | | - name: Check package-lock version |
| 56 | + name: Determine what node version to use |
57 | 57 | # This workflow is from our own org repo and safe to reference by 'master'. |
58 | 58 | uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR |
| 59 | + with: |
| 60 | + node-version: ${{ vars.NODE_VERSION }} |
59 | 61 | id: lockversion |
60 | 62 | - if: steps.packagejson.outputs.exists == 'true' |
61 | 63 | name: Setup Node.js |
@@ -100,15 +102,17 @@ jobs: |
100 | 102 | run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT |
101 | 103 | shell: bash |
102 | 104 | - if: steps.packagejson.outputs.exists == 'true' |
103 | | - name: Check package-lock version |
| 105 | + name: Determine what node version to use |
104 | 106 | # This workflow is from our own org repo and safe to reference by 'master'. |
105 | 107 | uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master # //NOSONAR |
| 108 | + with: |
| 109 | + node-version: ${{ vars.NODE_VERSION }} |
106 | 110 | id: lockversion |
107 | 111 | - if: steps.packagejson.outputs.exists == 'true' |
108 | 112 | name: Setup Node.js |
109 | 113 | uses: actions/setup-node@v4 |
110 | 114 | with: |
111 | | - node-version: "22.14.0" |
| 115 | + node-version: "${{ steps.lockversion.outputs.version }}" |
112 | 116 | registry-url: "https://registry.npmjs.org" |
113 | 117 | - if: steps.packagejson.outputs.exists == 'true' |
114 | 118 | name: Install dependencies |
|
0 commit comments