Skip to content

Commit d954efd

Browse files
authored
ci: update of files from global .github repo (#762)
1 parent fe0a0ef commit d954efd

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
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

.github/workflows/if-nodejs-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ jobs:
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

.github/workflows/if-nodejs-version-bump.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ jobs:
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

0 commit comments

Comments
 (0)