From 6ba98a82ccc39b15cdb67f91ae94c5d54a35e827 Mon Sep 17 00:00:00 2001 From: Baruch Odem Date: Mon, 30 Sep 2024 10:15:26 +0300 Subject: [PATCH] use node version from file --- .github/workflows/lint.yml | 2 +- .github/workflows/nodeCI.yml | 9 ++++----- .github/workflows/release.yml | 6 +++--- .node-version | 1 - 4 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 .node-version diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6d2f64d1..b460e9e0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Run npm install run: npm install diff --git a/.github/workflows/nodeCI.yml b/.github/workflows/nodeCI.yml index 35351ede..b93e9584 100644 --- a/.github/workflows/nodeCI.yml +++ b/.github/workflows/nodeCI.yml @@ -8,14 +8,13 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.19.x] os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: .nvmrc - uses: browser-actions/setup-chrome@v1 - name: npm install and test env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9139e3cf..589b40c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: 18.19.x + node-version-file: .nvmrc registry-url: https://registry.npmjs.org/ - name: prepare default version run: npm run prepare:default diff --git a/.node-version b/.node-version deleted file mode 100644 index e65243f2..00000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -16.19.0