diff --git a/.github/actions/before-install/action.yml b/.github/actions/before-install/action.yml index 20818006ecb..c2197103b4c 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 dd38f4dadc0..d1888245282 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 }}