From 90e992c2fc0e7f6604c81514b90928fac859ebd3 Mon Sep 17 00:00:00 2001 From: Raphael Flechtner Date: Wed, 5 Apr 2023 16:18:25 +0200 Subject: [PATCH] ci: use nvmrc version for ci jobs --- .github/workflows/devpackpublish.yml | 2 +- .github/workflows/npmpublish-rc.yml | 4 ++-- .github/workflows/npmpublish.yml | 4 ++-- .github/workflows/test-node-candidate.yml | 8 ++++---- .github/workflows/tests.yml | 10 +++++----- .nvmrc | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/devpackpublish.yml b/.github/workflows/devpackpublish.yml index a976dc9cc..775829df7 100644 --- a/.github/workflows/devpackpublish.yml +++ b/.github/workflows/devpackpublish.yml @@ -23,7 +23,7 @@ jobs: token: ${{ secrets.REPO_ACCESS_TOKEN }} - uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/npmpublish-rc.yml b/.github/workflows/npmpublish-rc.yml index c53519c74..32757d77c 100644 --- a/.github/workflows/npmpublish-rc.yml +++ b/.github/workflows/npmpublish-rc.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - run: yarn install --immutable - run: yarn build @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 7f3123b81..69f679d51 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - run: yarn install --immutable - run: yarn build @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/test-node-candidate.yml b/.github/workflows/test-node-candidate.yml index b9b73eb25..767e524ea 100644 --- a/.github/workflows/test-node-candidate.yml +++ b/.github/workflows/test-node-candidate.yml @@ -21,7 +21,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - name: yarn install run: yarn install --immutable @@ -54,7 +54,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' - name: Log out node version run: node --version - uses: actions/download-artifact@v3 @@ -100,7 +100,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' - uses: actions/download-artifact@v3 with: name: build @@ -122,7 +122,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version-file: '.nvmrc' - uses: actions/download-artifact@v3 with: name: build diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c7efd13e7..c929d216d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,7 +41,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' cache: 'yarn' - name: yarn install run: yarn install --immutable @@ -63,7 +63,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' - uses: actions/download-artifact@v3 with: name: build @@ -127,7 +127,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' - name: Log out node version run: node --version - uses: actions/download-artifact@v3 @@ -173,7 +173,7 @@ jobs: - name: Use Node.js 14 uses: actions/setup-node@v3 with: - node-version: 14 + node-version-file: '.nvmrc' - uses: actions/download-artifact@v3 with: name: build @@ -203,7 +203,7 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version-file: '.nvmrc' - uses: actions/download-artifact@v3 with: name: build diff --git a/.nvmrc b/.nvmrc index b009dfb9d..853c0e122 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/* +lts/Hydrogen