Use setup-node@v4's new node-version-file directly (#3435)

This commit is contained in:
William Entriken
2024-09-16 13:48:49 -04:00
committed by GitHub
parent efa74a5f50
commit 1c47685aea

View File

@@ -49,14 +49,11 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Read .nvmrc
id: node_version
run: echo "$(cat .nvmrc)" && echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NVMRC }}
node-version-file: .nvmrc
cache: "yarn"
cache-dependency-path: web-app/yarn.lock
- uses: actions/cache@v4