diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 0b43e05..c86707b 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -16,14 +16,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Read .nvmrc - id: nvm - run: echo ::set-output name=NVMRC::$(cat .nvmrc) - - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install NPM dependencies run: npm ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0e93b3..78a272c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Read .nvmrc - id: nvm - run: echo ::set-output name=NVMRC::$(cat .nvmrc) - - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install npm dependencies run: npm ci diff --git a/.github/workflows/dependabot-build.yml b/.github/workflows/dependabot-build.yml index 992f400..ed0a702 100644 --- a/.github/workflows/dependabot-build.yml +++ b/.github/workflows/dependabot-build.yml @@ -37,14 +37,10 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.DEPENDABOT_AUTOMATION_PAT }} - - name: Read .nvmrc - id: nvm - run: echo ::set-output name=NVMRC::$(cat .nvmrc) - - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install NPM dependencies run: npm ci