From fa7bce4f381dbe809017cd3e349aea254b436a29 Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua <511911+oscb@users.noreply.github.com> Date: Tue, 12 Dec 2023 15:10:45 -0800 Subject: [PATCH] ci: corepack fix in publish --- .github/workflows/publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9759a17d..13b8a4ef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,10 +25,17 @@ jobs: persist-credentials: false token: ${{ secrets.GH_TOKEN }} - - uses: actions/setup-node@v2 + # Workaround for corepack enable in node + # Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029) + - uses: actions/setup-node@v4 with: node-version: 20 - cache: 'yarn' + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: yarn + # End workaround - name: Config and Build run: |