From 73141aa4521df85e2c9d46e3f255036c83cc4746 Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Wed, 27 Nov 2024 19:07:21 +0100 Subject: [PATCH] use nvmrc --- .github/workflows/test-and-release.yml | 8 ++------ .nvmrc | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index dcb73b8..d984253 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -17,16 +17,12 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - name: Install package run: npm i diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..8fdd954 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 \ No newline at end of file