diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 6cc89486c..527479dac 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 18.12.0 + node-version-file: '.nvmrc' - run: yarn install - name: build diff --git a/.nvmrc b/.nvmrc index 99cdd8009..3e558c9b3 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -16.15.0 +18.12.0 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6e27f3b66..6f9514cf7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,17 +13,14 @@ stages: steps: - task: NodeTool@0 inputs: - versionSpec: '18.12.0' + versionSource: 'fromFile' + versionFilePath: '.nvmrc' displayName: 'Install Node.js' - stage: build jobs: - job: build steps: - - task: NodeTool@0 - inputs: - versionSpec: '18.12.0' - displayName: 'Install Node.js' - script: | node --version yarn --version