Skip to content

Commit 27db30a

Browse files
committed
feat: ✨ use nvmrc file
1 parent 6f53027 commit 27db30a

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 'v20.10.0'
21+
node-version-file: '.nvmrc'
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Install Yarn
@@ -44,7 +44,7 @@ jobs:
4444

4545
- uses: actions/setup-node@v4
4646
with:
47-
node-version: 'v20.10.0'
47+
node-version-file: '.nvmrc'
4848
registry-url: 'https://registry.npmjs.org'
4949

5050
- name: Install Yarn
@@ -84,7 +84,7 @@ jobs:
8484

8585
- uses: actions/setup-node@v4
8686
with:
87-
node-version: 'v20.10.0'
87+
node-version-file: '.nvmrc'
8888
registry-url: 'https://registry.npmjs.org'
8989

9090
- name: Download artifact

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
steps:
176176
- uses: actions/setup-node@v4
177177
with:
178-
node-version: 'v20.10.0'
178+
node-version-file: '.nvmrc'
179179

180180
- name: Checkout
181181
uses: actions/checkout@v4

.github/workflows/production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 'v20.10.0'
20+
node-version-file: '.nvmrc'
2121
registry-url: 'https://registry.npmjs.org'
2222

2323
- name: Install Yarn

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Setup .npmrc file to publish to npm
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 'v20.10.0'
20+
node-version-file: '.nvmrc'
2121
registry-url: 'https://registry.npmjs.org'
2222
scope: '@jamesives'
2323

@@ -43,7 +43,7 @@ jobs:
4343
# Setup .npmrc file to publish to GitHub Packages
4444
- uses: actions/setup-node@v4
4545
with:
46-
node-version: 'v20.10.0'
46+
node-version-file: '.nvmrc'
4747
registry-url: 'https://npm.pkg.github.com'
4848
scope: '@jamesives'
4949

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ yarn-error.log
2626
coverage
2727

2828
# Yarn Integrity file
29-
.yarn-integrity
29+
.yarn-integrity
30+
31+
# Dot Env
32+
.env

0 commit comments

Comments
 (0)