diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index afe1dfab0..5692b830f 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 "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install npm dependencies run: npm clean-install diff --git a/.github/workflows/dependabot-build.yml b/.github/workflows/dependabot-build.yml index 30103b72d..e4d5a3d25 100644 --- a/.github/workflows/dependabot-build.yml +++ b/.github/workflows/dependabot-build.yml @@ -35,14 +35,10 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} token: ${{ secrets.DEPENDABOT_AUTOBUILD }} - - name: Read .nvmrc - id: nvm - run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install npm dependencies run: npm clean-install diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index a74478d59..965265e5c 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -17,14 +17,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Read .nvmrc - id: nvm - run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install npm dependencies run: npm clean-install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06fad86c2..aaa5d8360 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,14 +15,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - name: Read .nvmrc - id: nvm - run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + node-version-file: .nvmrc - name: Install npm dependencies run: npm clean-install