Revert "[AAE-18105] Fix release workflow: release-npm step doesn't publish al…" (#9092)

* Revert "[AAE-18105] Fix release workflow: release-npm step doesn't publish all the  packages (#9091)"

This reverts commit 17323b0abb.

* Fix release workflow: publish always all the libs until we don't handle partial release
This commit is contained in:
Amedeo Lepore
2023-11-15 17:46:25 +01:00
committed by GitHub
parent 17323b0abb
commit 22d3179a55
2 changed files with 5 additions and 4 deletions

View File

@@ -60,8 +60,9 @@ runs:
echo "Setting up CI flags for Push develop patch" echo "Setting up CI flags for Push develop patch"
else else
echo "Setting up CI flags for Push on develop branch" echo "Setting up CI flags for Push on develop branch"
base=$(git describe --tags $(git rev-list --tags --max-count=1)) # base=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "NX_CALCULATION_FLAGS=--base=$base --head=$HEAD_HASH" >> $GITHUB_ENV # we publish always all the libs until we don't handle partial release
echo "NX_CALCULATION_FLAGS=--all" >> $GITHUB_ENV
fi fi
echo "BREAK_ACTION=true" >> $GITHUB_ENV echo "BREAK_ACTION=true" >> $GITHUB_ENV

View File

@@ -189,7 +189,7 @@ jobs:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com' registry-url: 'https://npm.pkg.github.com'
scope: '@alfresco' 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: env:
NODE_AUTH_TOKEN: ${{ secrets.PAT_WRITE_PKG }} NODE_AUTH_TOKEN: ${{ secrets.PAT_WRITE_PKG }}
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
@@ -198,7 +198,7 @@ jobs:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}' registry-url: 'https://${{ vars.NPM_REGISTRY_ADDRESS }}'
scope: '@alfresco' 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: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}