diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.yml index 02f4e21..5c7762e 100644 --- a/.github/workflows/build-storybook.yml +++ b/.github/workflows/build-storybook.yml @@ -26,8 +26,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - # TODO: add version to a .nvmrc or at least a variable - node-version: 18.12.1 + node-version-file: '.nvmrc' cache: npm - name: Install run: npm ci --prefer-offline diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2997a10..48e2b03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,8 +26,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - # TODO: add version to a .nvmrc or at least a variable - node-version: 18.12.1 + node-version-file: '.nvmrc' cache: npm - name: Install run: npm ci --omit=dev --prefer-offline @@ -36,7 +35,6 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - # TODO (GAFI 19-03-2024): Add variable for this to avoid using ref when not provided name: ${{ env.ARTIFACT_NAME }} path: ./dist if-no-files-found: error diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index a941788..d974109 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -26,8 +26,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - # TODO: add version to a .nvmrc or at least a variable - node-version: 18.12.1 + node-version-file: '.nvmrc' cache: npm registry-url: 'https://npm.pkg.github.com' - name: Install diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e240b58..fda724f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,8 +11,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: -# TODO: add version to a .nvmrc or at least a variable - node-version: 18.12.1 + node-version-file: '.nvmrc' cache: npm - name: Install run: npm ci --prefer-offline diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml index 763feb2..a01609b 100644 --- a/.github/workflows/type-check.yml +++ b/.github/workflows/type-check.yml @@ -11,8 +11,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: -# TODO: add version to a .nvmrc or at least a variable - node-version: 18.12.1 + node-version-file: '.nvmrc' cache: npm - name: Install run: npm ci --prefer-offline diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2dbbe00 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.11.1