From 7d9811da9682ae3d3c25f989aadb09919fd9672e Mon Sep 17 00:00:00 2001 From: "me@jeffersonbledsoe.com" Date: Tue, 18 Jun 2024 09:33:34 +0100 Subject: [PATCH] Ensure we're using the correct version of node --- .github/workflows/test.yaml | 9 +++++++-- .nvmrc | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3c952a4..bb01d56 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,12 +12,17 @@ jobs: with: submodules: recursive fetch-depth: 0 + - name: Setup pnpm + run: corepack enable + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'pnpm' - name: Get pnpm store directory shell: bash run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - name: Setup pnpm - run: corepack enable # - name: Get pnpm store directory # shell: bash # run: | diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..93a75dd --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.14.0 \ No newline at end of file