From 06355f0a5348247d15e12fb184dd7f456f82bea3 Mon Sep 17 00:00:00 2001 From: yzhu <891085309@qq.com> Date: Tue, 1 Nov 2022 07:13:04 +0800 Subject: [PATCH] ci: specify node version --- .github/workflows/checkin.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checkin.yml b/.github/workflows/checkin.yml index cd692f4..d409eff 100644 --- a/.github/workflows/checkin.yml +++ b/.github/workflows/checkin.yml @@ -8,10 +8,19 @@ jobs: checkin: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x] + steps: - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' - name: install - run: yarn install + run: yarn install --frozen-lockfile - name: build run: yarn build - name: test