From a6ccb2d2ca2e5ec45e6beb81d6e7053cc688c97b Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Tue, 25 Jun 2024 00:08:47 +0900 Subject: [PATCH] Configure pnpm on CI --- .github/workflows/check-core.yml | 9 +++++++++ .gitignore | 1 + core/.node-version | 1 + 3 files changed, 11 insertions(+) create mode 100644 core/.node-version diff --git a/.github/workflows/check-core.yml b/.github/workflows/check-core.yml index 1fcc3ec..8a61002 100644 --- a/.github/workflows/check-core.yml +++ b/.github/workflows/check-core.yml @@ -21,6 +21,15 @@ jobs: with: sparse-checkout: ${{ env.WORKING_DIRECTORY }} + - name: Install pnpm + run: npm install -g pnpm + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.node-version' + cache: 'pnpm' + - name: Lint & format run: | make check diff --git a/.gitignore b/.gitignore index 18faed6..e0558d2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ package .log/ node_modules coverage +.tool-versions diff --git a/core/.node-version b/core/.node-version new file mode 100644 index 0000000..cecb936 --- /dev/null +++ b/core/.node-version @@ -0,0 +1 @@ +20.15