From 7904d7418d08cbcf5bec4e25d0cf239ff8eb7529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Mon, 4 Aug 2025 11:22:30 +0200 Subject: [PATCH] try updating github workflows for pnpm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .github/workflows/pl-api.yaml | 13 ++++--------- .github/workflows/pl-fe.yaml | 24 +++++++++++++----------- .github/workflows/pl-hooks.yaml | 8 ++++---- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/pl-api.yaml b/.github/workflows/pl-api.yaml index 3aaae944a..9a3471163 100644 --- a/.github/workflows/pl-api.yaml +++ b/.github/workflows/pl-api.yaml @@ -9,7 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest - name: Test for a successful build + name: Test for pl-api formatting strategy: matrix: node-version: [22.x] @@ -27,15 +27,10 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install deps - working-directory: ./packages/pl-api - run: yarn install --ignore-scripts + working-directory: . + run: pnpm install - name: Lint working-directory: ./packages/pl-api - run: yarn lint + run: pnpm lint - - name: Build - env: - NODE_ENV: production - working-directory: ./packages/pl-api - run: yarn build diff --git a/.github/workflows/pl-fe.yaml b/.github/workflows/pl-fe.yaml index 41969b041..5162af9ee 100644 --- a/.github/workflows/pl-fe.yaml +++ b/.github/workflows/pl-fe.yaml @@ -27,25 +27,31 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install deps - working-directory: ./packages/pl-fe - run: yarn install --ignore-scripts + working-directory: . + run: pnpm install - name: Lint working-directory: ./packages/pl-fe - run: yarn lint + run: pnpm lint + + - name: Build pl-api + env: + NODE_ENV: production + working-directory: ./packages/pl-api + run: pnpm build - name: Build env: NODE_ENV: production working-directory: ./packages/pl-fe - run: yarn build + run: pnpm build - name: i18n working-directory: ./packages/pl-fe run: | - yarn i18n + pnpm i18n git diff - git diff --quiet || (echo "Locale files are out of date. Please run \`yarn i18n\`" && exit 1) + git diff --quiet || (echo "Locale files are out of date. Please run \`pnpm i18n\`" && exit 1) - name: Upload artifact uses: actions/upload-artifact@v4 @@ -62,14 +68,10 @@ jobs: NODE_ENV: production working-directory: ./packages/pl-fe run: | - WITH_LANDING_PAGE=true yarn build + WITH_LANDING_PAGE=true pnpm build cp dist/index.html dist/404.html cp pl-fe.zip dist/pl-fe.zip - - name: Install pl-api deps - working-directory: ./packages/pl-api - run: yarn install --ignore-scripts - - name: Build pl-api documentation working-directory: ./packages/pl-api run: npx typedoc diff --git a/.github/workflows/pl-hooks.yaml b/.github/workflows/pl-hooks.yaml index 844270ac0..ac9d2c239 100644 --- a/.github/workflows/pl-hooks.yaml +++ b/.github/workflows/pl-hooks.yaml @@ -27,15 +27,15 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install deps - working-directory: ./packages/pl-hooks - run: yarn install --ignore-scripts + working-directory: . + run: pnpm install - name: Lint working-directory: ./packages/pl-hooks - run: yarn lint + run: pnpm lint - name: build env: NODE_ENV: production working-directory: ./packages/pl-hooks - run: yarn build + run: pnpm build