add .nvmrc file

This commit is contained in:
Martin Raifer 2023-03-13 12:45:01 +01:00
parent fbcb8800a2
commit b23a0b07a4
No known key found for this signature in database
GPG key ID: 3CD561F7B1C461BD
5 changed files with 5 additions and 4 deletions

View file

@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: '.nvmrc'
- run: npm install
- run: npm run dist
- uses: actions/checkout@v3

View file

@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: '.nvmrc'
- run: npm install --global netlify-cli@6
- run: npm install unzipper@0.10

View file

@ -22,7 +22,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: '.nvmrc'
- name: Install Node.js dependencies
run: npm install

View file

@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version-file: '.nvmrc'
- run: npm install
- run: 'for f in `find data/ -type f -not -iname "*.json"`; do echo "::error File $f is not a .json file."; done'
- run: npm run lint

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
lts/*