From 22d3179a55c607483536fa937977ed411774fd94 Mon Sep 17 00:00:00 2001 From: Amedeo Lepore Date: Wed, 15 Nov 2023 17:46:25 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"[AAE-18105]=20Fix=20release=20workflo?= =?UTF-8?q?w:=20release-npm=20step=20doesn't=20publish=20al=E2=80=A6"=20(#?= =?UTF-8?q?9092)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "[AAE-18105] Fix release workflow: release-npm step doesn't publish all the packages (#9091)" This reverts commit 17323b0abbee9e9687f5a2902dfa3887094b2305. * Fix release workflow: publish always all the libs until we don't handle partial release --- .github/actions/before-install/action.yml | 5 +++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/actions/before-install/action.yml b/.github/actions/before-install/action.yml index 20818006ec..c2197103b4 100644 --- a/.github/actions/before-install/action.yml +++ b/.github/actions/before-install/action.yml @@ -60,8 +60,9 @@ runs: echo "Setting up CI flags for Push develop patch" else echo "Setting up CI flags for Push on develop branch" - base=$(git describe --tags $(git rev-list --tags --max-count=1)) - echo "NX_CALCULATION_FLAGS=--base=$base --head=$HEAD_HASH" >> $GITHUB_ENV + # base=$(git describe --tags $(git rev-list --tags --max-count=1)) + # we publish always all the libs until we don't handle partial release + echo "NX_CALCULATION_FLAGS=--all" >> $GITHUB_ENV fi echo "BREAK_ACTION=true" >> $GITHUB_ENV diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd38f4dadc..d188824528 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -189,7 +189,7 @@ jobs: node-version-file: '.nvmrc' registry-url: 'https://npm.pkg.github.com' scope: '@alfresco' - - run: npx nx run-many --all --target=npm-publish --exclude=demoshell $NX_CALCULATION_FLAGS --tag=$TAG_NPM --skip-nx-cache || exit 1 + - run: npx nx affected --target=npm-publish $NX_CALCULATION_FLAGS --tag=$TAG_NPM || exit 1 env: NODE_AUTH_TOKEN: ${{ secrets.PAT_WRITE_PKG }} - uses: actions/setup-node@v3 @@ -198,7 +198,7 @@ jobs: node-version-file: '.nvmrc' registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}' scope: '@alfresco' - - run: npx nx run-many --all --target=npm-publish --exclude=demoshell $NX_CALCULATION_FLAGS --tag=$TAG_NPM --skip-nx-cache || exit 1 + - run: npx nx affected --target=npm-publish $NX_CALCULATION_FLAGS --tag=$TAG_NPM || exit 1 env: NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}