From 1543970e4461e0ac84ffb24037c44171aae10aee Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Sat, 5 Nov 2022 23:32:40 -0500 Subject: [PATCH] Changes workflows reading .nvmrc. --- .github/workflows/release.yml | 7 ++----- .github/workflows/test.yml | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22ee7b44..a0a48334 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,15 +10,12 @@ jobs: uses: actions/checkout@v3 - name: Validate and extract release information id: release - uses: manovotny/github-releases-for-automated-package-publishing-action@v1.0.0 - - name: Read node version - id: nvm - run: echo "::set-output name=version::$(cat .nvmrc)" + uses: manovotny/github-releases-for-automated-package-publishing-action@v2.0.1 - name: Set node version uses: actions/setup-node@v3 with: always-auth: true - node-version: ${{ steps.nvm.outputs.version }} + node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - name: Cache node_modules id: node-modules-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fa45f37e..66ea6224 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,13 +10,10 @@ jobs: access_token: ${{ github.token }} - name: Checkout repo uses: actions/checkout@v3 - - name: Read node version - id: nvm - run: echo "::set-output name=version::$(cat .nvmrc)" - name: Set node version uses: actions/setup-node@v3 with: - node-version: ${{ steps.nvm.outputs.version }} + node-version-file: '.nvmrc' - name: Cache node_modules id: node-modules-cache uses: actions/cache@v3