From 327b9ea8a9c19a0c1609b80f4d3eded5778b4ec5 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sun, 14 Jul 2024 20:03:14 +0800 Subject: [PATCH] ci(workflows/ci): setup node before enabling corepack --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7647e2360..c825e62d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,15 @@ jobs: - name: Checkout Repo uses: actions/checkout@v4 + - name: Setup target Node.js to enable Corepack + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - name: Enable Corepack run: corepack enable - - name: Setup Node.js ${{ matrix.node }} + - name: Setup Node.js ${{ matrix.node }} with cache uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }}