diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 4616c89e5..48f12202f 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version-file: '.nvmrc' - name: Install NPM packages run: npm ci @@ -26,4 +26,4 @@ jobs: run: | cd ./docs npm ci - npm run build \ No newline at end of file + npm run build diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 2971aea03..ac7380063 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version-file: '.nvmrc' - name: Install NPM packages run: npm ci @@ -32,4 +32,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages - folder: docs/dist/public \ No newline at end of file + folder: docs/dist/public diff --git a/.github/workflows/publish-style-spec.yml b/.github/workflows/publish-style-spec.yml index f708a6356..c35fb8e19 100644 --- a/.github/workflows/publish-style-spec.yml +++ b/.github/workflows/publish-style-spec.yml @@ -12,11 +12,10 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js 18 x64 + - name: Use Node.js from nvmrc uses: actions/setup-node@v3.6.0 with: - node-version: 18 - architecture: x64 + node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - name: Get version diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 2d507c252..2695ecab0 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: lts/* + node-version-file: '.nvmrc' - run: npm ci - run: npm run lint if: success() || failure() @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: lts/* + node-version-file: '.nvmrc' - run: npm ci - run: npm run jest-ci -- --coverage --coverageDirectory=coverage-unit --coverageReporters json --selectProjects unit - run: npm run jest-ci -- --coverage --coverageDirectory=coverage-integration --coverageReporters json --selectProjects integration @@ -51,7 +51,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: lts/* + node-version-file: '.nvmrc' - run: npm ci - run: npm run generate-style-spec - run: npm run generate-typings