diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6ab7b82f..2d44cebca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.RELEASE_NPM_TOKEN }} run: | - changed_packages=$(gh pr view --json files --jq '.files.[].path' "${{ github.event.pull_request.number }}" | cut -d / -f 1,2 | uniq) + changed_packages=$(gh pr view --json files --jq '.files.[].path' "${{ github.event.pull_request.number }}" | cut -d / -f 1,2 | uniq | grep ./packages) pnpm_options='' for path in $changed_packages; do pnpm_options="${pnpm_options} --filter ./${path}" @@ -53,12 +53,12 @@ jobs: released_packages=() for path in $changed_packages; do - package_name=$(grep '"name":' $path | cut -d : -f 2 | cut -d '"' -f 2) - package_version=$(grep '"version":' $path | cut -d : -f 2 | cut -d '"' -f 2) + package_name=$(grep '"name":' $path/package.json | cut -d : -f 2 | cut -d '"' -f 2) + package_version=$(grep '"version":' $path/package.json | cut -d : -f 2 | cut -d '"' -f 2) released_packages[${#released_packages[@]}]="${package_name}@${package_version}" done - if [ "${github.event.pull_request.number}" != "" ]; then + if [ "${{github.event.pull_request.number}}" != "" ]; then gh pr comment "${{ github.event.pull_request.number }}" --body "🚀 Released in ${released_packages[@]}" fi diff --git a/packages/casl-angular/README.md b/packages/casl-angular/README.md index 5ab21e6be..78e8f5f93 100644 --- a/packages/casl-angular/README.md +++ b/packages/casl-angular/README.md @@ -8,7 +8,7 @@ This package allows to integrate `@casl/ability` with [Angular] application. It ## Installation -The latest version of this package is compiled by Ivy, so **apps that do not use Ivy are no longer supported.** +The latest version of this package is compiled by Ivy, so **apps that do not use Ivy are no longer supported**. ```sh npm install @casl/angular @casl/ability