From fb4f106e85f9c47f9de6f47a3d2fdfb3330e17a5 Mon Sep 17 00:00:00 2001 From: 8398a7 <8398a7@gmail.com> Date: Tue, 23 Nov 2021 03:39:11 +0900 Subject: [PATCH] fix node version --- .github/workflows/test-build.yml | 8 +++++++- .github/workflows/uncommitted.yml | 6 ++++-- .node-version | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index d3ca865f..dce18e1a 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -6,13 +6,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16.13.0 - uses: actions/cache@v2 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm install + - run: npm ci - run: npm run all env: GITHUB_TOKEN: ${{ github.token }} @@ -30,6 +33,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: actions/setup-node@v2 + with: + node-version: 16.13.0 - uses: actions/cache@v2 with: path: ~/.npm diff --git a/.github/workflows/uncommitted.yml b/.github/workflows/uncommitted.yml index c14a1a1b..fec66b7f 100644 --- a/.github/workflows/uncommitted.yml +++ b/.github/workflows/uncommitted.yml @@ -10,14 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: npm ci + - uses: actions/setup-node@v2 + with: + node-version: 16.13.0 - uses: actions/cache@v2 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm install + - run: npm ci - run: npm run release - name: check for uncommitted changes run: | diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..58a4133d --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +16.13.0