Skip to content

Commit

Permalink
config: Adds .nvmrc (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 authored Mar 21, 2024
2 parents 9084691 + d98a967 commit 076955e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
3 changes: 1 addition & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.1

0 comments on commit 076955e

Please sign in to comment.