From 99839eed5a5fd74546aa82435dad00e0bf5a5cd4 Mon Sep 17 00:00:00 2001 From: Sergii Stotskyi Date: Tue, 21 Nov 2023 12:09:59 +0200 Subject: [PATCH 1/3] chore: test release --- packages/casl-angular/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 4988f12a30cd5f4857831f9b4050d723feb52374 Mon Sep 17 00:00:00 2001 From: Sergii Stotskyi Date: Tue, 21 Nov 2023 12:13:10 +0200 Subject: [PATCH 2/3] chore: fix release workflow check --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6ab7b82f..a96140ff3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: 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 From 1b93ba7c57082834be2bbb7d864216e310056272 Mon Sep 17 00:00:00 2001 From: Sergii Stotskyi Date: Tue, 21 Nov 2023 12:17:24 +0200 Subject: [PATCH 3/3] chore: fix release workflow package name extraction --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a96140ff3..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,8 +53,8 @@ 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