diff --git a/.github/workflows/frontend-coverage.yaml b/.github/workflows/frontend-coverage.yaml index 70429b41a9..b1d65b15f2 100644 --- a/.github/workflows/frontend-coverage.yaml +++ b/.github/workflows/frontend-coverage.yaml @@ -36,12 +36,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install latest pnpm - working-directory: ${{env.working-directory}} - run: | - npm install -g pnpm && - pnpm --version && - pnpm list -g --depth 0 + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install dependencies working-directory: ${{env.working-directory}} run: pnpm i --frozen-lockfile diff --git a/.github/workflows/frontend-linters.yaml b/.github/workflows/frontend-linters.yaml index e8fcf180b1..10dc1ab1b9 100644 --- a/.github/workflows/frontend-linters.yaml +++ b/.github/workflows/frontend-linters.yaml @@ -35,12 +35,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install latest pnpm - working-directory: ${{env.working-directory}} - run: | - npm install -g pnpm && - pnpm --version && - pnpm list -g --depth 0 + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install prettier working-directory: ${{env.working-directory}} run: pnpm add --save-dev prettier @@ -74,12 +72,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install latest pnpm - working-directory: ${{env.working-directory}} - run: | - npm install -g pnpm && - pnpm --version && - pnpm list -g --depth 0 + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install prettier working-directory: ${{env.working-directory}} run: pnpm add --save-dev prettier diff --git a/.github/workflows/frontend-unit-tests.yml b/.github/workflows/frontend-unit-tests.yml index 66497aeb95..9c3a8acaaf 100644 --- a/.github/workflows/frontend-unit-tests.yml +++ b/.github/workflows/frontend-unit-tests.yml @@ -35,12 +35,10 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install latest pnpm - working-directory: ${{env.working-directory}} - run: | - npm install -g pnpm && - pnpm --version && - pnpm list -g --depth 0 + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install dependencies working-directory: ${{env.working-directory}} run: pnpm i --frozen-lockfile diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index c1c067b4e5..f2b36b4bac 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -50,8 +50,10 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm- - - name: Install pnpm globally - run: npm install -g pnpm + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install community frontend dependencies working-directory: ${{ env.frontend-directory }} @@ -94,8 +96,10 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm- - - name: Install pnpm globally - run: npm install -g pnpm + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Build enterprise frontend working-directory: ${{ env.enterprise-frontend-directory }} @@ -238,8 +242,10 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm- - - name: Install pnpm globally - run: npm install -g pnpm + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install community frontend dependencies (if not cached/part of build artifact) working-directory: ${{ env.frontend-directory }} @@ -247,7 +253,10 @@ jobs: - name: Get installed Playwright version id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(pnpm exec playwright --version | awk -F ' ' '{print $2}')" >> $GITHUB_ENV + working-directory: ${{ env.frontend-directory }} + run: | + PLAYWRIGHT_VERSION=$(node -p "require('@playwright/test/package.json').version") + echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> "$GITHUB_ENV" - name: Cache playwright binaries uses: actions/cache@v4 @@ -414,8 +423,10 @@ jobs: working-directory: ${{ env.enterprise-frontend-directory }} run: make pre-build - - name: Install pnpm globally - run: npm install -g pnpm + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install enterprise frontend dependencies working-directory: ${{ env.enterprise-frontend-build-directory }} @@ -423,7 +434,10 @@ jobs: - name: Get installed Playwright version id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(pnpm exec playwright --version | awk -F ' ' '{print $2}')" >> $GITHUB_ENV + working-directory: ${{ env.enterprise-frontend-build-directory }} + run: | + PLAYWRIGHT_VERSION=$(node -p "require('@playwright/test/package.json').version") + echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> "$GITHUB_ENV" - name: Cache playwright binaries uses: actions/cache@v4 diff --git a/.github/workflows/rpm-build.yml b/.github/workflows/rpm-build.yml index 0e6b9ba606..7a4beb8815 100644 --- a/.github/workflows/rpm-build.yml +++ b/.github/workflows/rpm-build.yml @@ -54,11 +54,15 @@ jobs: ncurses-devel \ gdbm-devel - - name: Install Node.js and pnpm + - name: Install Node.js run: | curl -fsSL https://rpm.nodesource.com/setup_22.x | bash - dnf install -y nodejs - npm install -g pnpm + + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install Poetry run: | diff --git a/.github/workflows/startup-tests.yml b/.github/workflows/startup-tests.yml index a461dfc68f..e603cfb0bc 100644 --- a/.github/workflows/startup-tests.yml +++ b/.github/workflows/startup-tests.yml @@ -80,11 +80,13 @@ jobs: - name: Install backend requirements working-directory: ${{ env.backend-directory }} run: poetry install + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install frontend dependencies working-directory: ${{ env.frontend-directory }} - run: | - npm install -g pnpm - pnpm i --frozen-lockfile + run: pnpm i --frozen-lockfile - name: Install Playwright Browsers working-directory: ${{ env.frontend-directory }} run: pnpm exec playwright install @@ -131,11 +133,13 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* + - name: Install pnpm + uses: pnpm/action-setup@v5 + with: + version: 10 - name: Install frontend dependencies working-directory: ${{ env.frontend-directory }} - run: | - npm install -g pnpm - pnpm i --frozen-lockfile + run: pnpm i --frozen-lockfile - name: Install Playwright Browsers working-directory: ${{ env.frontend-directory }} run: pnpm exec playwright install