Skip to content

Commit

Permalink
feat: ✨ use nvmrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Apr 17, 2024
1 parent 6f53027 commit 27db30a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Yarn
Expand All @@ -44,7 +44,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Yarn
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Download artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'

- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 'v20.10.0'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
scope: '@jamesives'

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

Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ yarn-error.log
coverage

# Yarn Integrity file
.yarn-integrity
.yarn-integrity

# Dot Env
.env

0 comments on commit 27db30a

Please sign in to comment.