mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Use nvmrc
in GitHub Actions workflows (#19661)
The `nvmrc` file is now referenced in our GitHub Actions workflows, rather than hard-coding the expected Node.js version. This will make future Node.js version changes easier to manage.
This commit is contained in:
parent
bc1a15a0a3
commit
1cc599708a
2
.github/workflows/add-release-label.yml
vendored
2
.github/workflows/add-release-label.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn --immutable
|
||||
|
4
.github/workflows/fitness-functions.yml
vendored
4
.github/workflows/fitness-functions.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn
|
||||
@ -31,4 +31,4 @@ jobs:
|
||||
# files in the current directory and its subdirectories. The output is
|
||||
# then saved to a file called "diff".
|
||||
git diff "$(git merge-base "origin/$BASE_REF" HEAD)" HEAD -- . > ./diff
|
||||
npm run fitness-functions -- "ci" "./diff"
|
||||
npm run fitness-functions -- "ci" "./diff"
|
||||
|
Loading…
Reference in New Issue
Block a user