diff --git a/.github/actions/build-nodejs-layer/action.yml b/.github/actions/build-nodejs-layer/action.yml index 9a538201ae..5f449989ec 100644 --- a/.github/actions/build-nodejs-layer/action.yml +++ b/.github/actions/build-nodejs-layer/action.yml @@ -14,7 +14,7 @@ runs: steps: - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 + node-version-file: 'nodejs/.nvmrc' - name: Build Node.js layer shell: bash diff --git a/.github/actions/build-python-layer/action.yml b/.github/actions/build-python-layer/action.yml index b00f84db86..864d9f1b5c 100644 --- a/.github/actions/build-python-layer/action.yml +++ b/.github/actions/build-python-layer/action.yml @@ -14,7 +14,7 @@ runs: steps: - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: - python-version: '3.14' + python-version-file: python/src/.python-version - name: Save Python OpenTelemetry SDK version id: version diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml index 4506668b88..915c334061 100644 --- a/.github/workflows/ci-nodejs.yml +++ b/.github/workflows/ci-nodejs.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 20 + node-version-file: 'nodejs/.nvmrc' - uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.npm diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3c81dd8443..4fe535cb67 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -102,7 +102,7 @@ jobs: - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: - node-version: 22 + node-version-file: 'integration-tests/.nvmrc' - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: diff --git a/integration-tests/.nvmrc b/integration-tests/.nvmrc new file mode 100644 index 0000000000..2bd5a0a98a --- /dev/null +++ b/integration-tests/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/nodejs/.nvmrc b/nodejs/.nvmrc new file mode 100644 index 0000000000..209e3ef4b6 --- /dev/null +++ b/nodejs/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/python/src/.python-version b/python/src/.python-version new file mode 100644 index 0000000000..c8cfe39591 --- /dev/null +++ b/python/src/.python-version @@ -0,0 +1 @@ +3.10