From 9d3eab9dd64f2164399f1ae556bbaadbe668208f Mon Sep 17 00:00:00 2001 From: Nicolas Bouliol Date: Thu, 22 Jan 2026 17:36:09 +0100 Subject: [PATCH] chore(node): add nvmrc file --- .github/workflows/build.yml | 18 +++++++++--------- .nvmrc | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a0aa670f..582f47bc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,9 +5,9 @@ on: branches: - main - alpha - - 'alpha-*' + - "alpha-*" - beta - - 'beta-*' + - "beta-*" pull_request: permissions: @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: ".nvmrc" - uses: actions/cache@v4 with: path: | @@ -82,7 +82,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: ".nvmrc" - name: Start docker containers if: ${{ matrix.package == 'datasource-mongo' || matrix.package == 'datasource-mongoose' || matrix.package == 'datasource-sql' || matrix.package == 'datasource-sequelize' }} run: docker compose -f ./packages/${{ matrix.package }}/docker-compose.yml up -d; sleep 5 @@ -137,7 +137,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: ".nvmrc" - name: Restore dependencies from cache uses: actions/cache/restore@v4 with: @@ -179,7 +179,7 @@ jobs: persist-credentials: false # GITHUB_TOKEN must not be set for the semantic release - uses: actions/setup-node@v4 with: - node-version: 22 + node-version-file: ".nvmrc" - name: Restore dependencies from cache uses: actions/cache/restore@v4 with: @@ -198,8 +198,8 @@ jobs: fail-on-cache-miss: true - name: Disable workspaces-update run: npm config set workspaces-update false - - name: 'Run multi-semantic-release' - run: '$(yarn bin)/multi-semantic-release --deps.bump=override' + - name: "Run multi-semantic-release" + run: "$(yarn bin)/multi-semantic-release --deps.bump=override" env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} @@ -215,7 +215,7 @@ jobs: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: [build-api-reference, send-coverage, lint] steps: - name: Setup Pages diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..f666621e5 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24.10