From 2c12b3142a8e9832bd92d349bb1b1d47d7ac6710 Mon Sep 17 00:00:00 2001 From: Harry Ross Date: Fri, 29 Dec 2023 17:08:59 +1100 Subject: [PATCH] Added nvmrc --- .github/workflows/lint-code.yml | 3 ++- .github/workflows/main.yml | 5 +---- .nvmrc | 1 + 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/lint-code.yml b/.github/workflows/lint-code.yml index adbbe4f..1172108 100644 --- a/.github/workflows/lint-code.yml +++ b/.github/workflows/lint-code.yml @@ -18,6 +18,7 @@ jobs: version: 8.13.0 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version-file: ".nvmrc" + cache: "pnpm" - run: pnpm i - run: pnpm lint diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 678d9f9..245130c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,9 +7,6 @@ on: jobs: publish-gpr: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [20] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v2 @@ -17,7 +14,7 @@ jobs: version: 8.13.0 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: ".nvmrc" registry-url: "https://registry.npmjs.org" cache: "pnpm" - name: Install dependencies 📦️ diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..1a2f5bd --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* \ No newline at end of file