[AAE-46514] - Migrating to Pnpm to increase safety

This commit is contained in:
VitoAlbano
2026-06-04 09:26:32 +01:00
parent eab5abb507
commit f8f518a87e
22 changed files with 21200 additions and 39228 deletions
+1 -2
View File
@@ -11,7 +11,6 @@ on:
env:
NODE_OPTIONS: "--max-old-space-size=5120"
ADF_SKIP_SECURITY_CHECK: 1
jobs:
build:
@@ -31,7 +30,7 @@ jobs:
full-setup: 'false'
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build affected libs
env:
BASE_REF: ${{ inputs.base_ref }}
+5 -6
View File
@@ -33,7 +33,6 @@ concurrency:
env:
GH_COMMIT: ${{ github.sha }}
NODE_OPTIONS: "--max-old-space-size=5120"
ADF_SKIP_SECURITY_CHECK: 1
jobs:
pre-checks:
@@ -177,11 +176,11 @@ jobs:
cache-suffix: setup
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Bundle
run: |
npm run bundle:js-api
npm run bundle:cli
pnpm run bundle:js-api
pnpm run bundle:cli
- name: Save nx cache
if: ${{ success() }}
uses: ./.github/actions/save-nx-cache
@@ -206,7 +205,7 @@ jobs:
full-setup: 'false'
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run lint
env:
BASE_REF: ${{ github.base_ref || 'develop' }}
@@ -242,7 +241,7 @@ jobs:
full-setup: 'false'
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Build Storybook
env:
BASE_REF: ${{ github.base_ref || 'develop' }}
+7 -8
View File
@@ -40,7 +40,6 @@ env:
GH_BUILD_NUMBER: ${{ github.run_id }}
LOG_LEVEL: "ERROR"
NODE_OPTIONS: "--max-old-space-size=5120"
ADF_SKIP_SECURITY_CHECK: 1
jobs:
setup:
@@ -58,9 +57,9 @@ jobs:
enable-node-modules-cache: false
- name: install
run: |
npm ci
npm run bundle:js-api
npm run bundle:cli
pnpm install --frozen-lockfile
pnpm run bundle:js-api
pnpm run bundle:cli
- uses: ./.github/actions/upload-node-modules-and-artifacts
release-npm:
@@ -101,15 +100,15 @@ jobs:
setMigrations();
- name: build libraries
run: |
npm run build:libs
npm run build:schematics
pnpm run build:libs
pnpm run build:schematics
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
name: release libraries GH registry
with:
node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com'
scope: '@alfresco'
- run: npm run publish -- --tag=${{ steps.setup.outputs.npm-tag }}
- run: pnpm run publish -- --tag=${{ steps.setup.outputs.npm-tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
@@ -118,7 +117,7 @@ jobs:
node-version-file: '.nvmrc'
registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}'
scope: '@alfresco'
- run: npm run publish -- --tag=${{ steps.setup.outputs.npm-tag }}
- run: pnpm run publish -- --tag=${{ steps.setup.outputs.npm-tag }}
create-git-tag:
runs-on: ubuntu-latest
+2 -3
View File
@@ -10,7 +10,6 @@ on:
default: 'develop'
env:
ADF_SKIP_SECURITY_CHECK: 1
jobs:
generate-affected-matrix:
@@ -31,7 +30,7 @@ jobs:
cache-suffix: test-matrix
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Generate affected projects matrix
id: set-matrix
env:
@@ -77,7 +76,7 @@ jobs:
full-setup: 'false'
- name: Install dependencies
if: ${{ steps.setup-env.outputs.node-modules-cache-hit != 'true' }}
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run unit tests for ${{ matrix.project }}
env:
NODE_OPTIONS: "--max-old-space-size=5120"