From 31fb916b9d6eb48d2d96138879d74a838e689983 Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 14 Mar 2025 02:14:18 -0400 Subject: [PATCH] Enable CI to use Yarn Berry --- .github/workflows/build-element-call.yaml | 4 +++- .github/workflows/lint.yaml | 4 +++- .github/workflows/test.yaml | 4 +++- .github/workflows/translations-download.yaml | 5 ++++- scripts/dockerbuild.sh | 1 + 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-element-call.yaml b/.github/workflows/build-element-call.yaml index 14c39b6a..747c9d4c 100644 --- a/.github/workflows/build-element-call.yaml +++ b/.github/workflows/build-element-call.yaml @@ -28,13 +28,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install --frozen-lockfile" + run: "yarn install --immutable" - name: Build full version if: ${{ inputs.package == 'full' }} run: "yarn run build:full" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 372c049a..9d3e1db8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -8,13 +8,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install --frozen-lockfile" + run: "yarn install --immutable" - name: Prettier run: "yarn run prettier:check" - name: i18n diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8f933f8f..061842f1 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,13 +10,15 @@ jobs: steps: - name: Checkout code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable - name: Yarn cache uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install dependencies - run: "yarn install --frozen-lockfile" + run: "yarn install --immutable" - name: Vitest run: "yarn run test:coverage" - name: Upload to codecov diff --git a/.github/workflows/translations-download.yaml b/.github/workflows/translations-download.yaml index d3b090ce..e5bb2b0c 100644 --- a/.github/workflows/translations-download.yaml +++ b/.github/workflows/translations-download.yaml @@ -15,13 +15,16 @@ jobs: - name: Checkout the code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Enable Corepack + run: corepack enable + - uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4 with: cache: "yarn" node-version-file: ".node-version" - name: Install Deps - run: "yarn install --frozen-lockfile" + run: "yarn install --immutable" - name: Prune i18n run: "rm -R locales" diff --git a/scripts/dockerbuild.sh b/scripts/dockerbuild.sh index cef7e488..ceabde8e 100755 --- a/scripts/dockerbuild.sh +++ b/scripts/dockerbuild.sh @@ -4,5 +4,6 @@ set -ex export VITE_APP_VERSION=$(git describe --tags --abbrev=0) +corepack enable yarn install yarn run build