From b23a0b07a4465bf18c99a8c28db93ab1b673bcd8 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Mon, 13 Mar 2023 12:45:01 +0100 Subject: [PATCH] add .nvmrc file --- .github/workflows/build-preview.yml | 2 +- .github/workflows/deploy-preview.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/lint.yml | 2 +- .nvmrc | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/build-preview.yml b/.github/workflows/build-preview.yml index 9e8a3488..12f91fa2 100644 --- a/.github/workflows/build-preview.yml +++ b/.github/workflows/build-preview.yml @@ -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 diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 0cc53117..b20be21c 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c61d3f76..1582e6e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 18078c7a..63a6a7d5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b009dfb9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/*