diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 3c94007e..bad4e291 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,9 +1,6 @@ template: | # What's Changed $CHANGES -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' -tag-prefix: v categories: - title: 'Added' labels: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5457924e..07de4968 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -74,7 +74,7 @@ jobs: steps: - uses: release-drafter/release-drafter@v5 with: - config-name: release-drafter.yml + config-name: release-drafter-transactions.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -88,7 +88,7 @@ jobs: steps: - uses: release-drafter/release-drafter@v5 with: - config-name: release-drafter.yml + config-name: release-drafter-transfer.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc15aa3c..9ac6d20a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,12 +26,15 @@ jobs: - name: 'Extract project from tag' id: set-project-from-tag run: | - version=$(echo "${{ github.event.release.tag_name }}" | awk -F"v" '{print $1}') - echo "extract project: ${{ github.event.release.tag_name }}, ${version}" + module=$(echo "${{ github.event.release.tag_name }}" | awk -F"@v" '{print $1}') + version=$(echo "${{ github.event.release.tag_name }}" | awk -F"@v" '{print $2}') + echo "extract project: ${{ github.event.release.tag_name }}, ${module}, ${version}" + echo "module=$module" >> $GITHUB_OUTPUT echo "version=$version" >> $GITHUB_OUTPUT - name: 'Bump' - run: cd libs/transfer && + if: ${{ steps.set-project-from-tag.outputs.module }} && ${{ steps.set-project-from-tag.outputs.version }} + run: cd libs/${{ steps.set-project-from-tag.outputs.module }} && npm version ${{ steps.set-project-from-tag.outputs.version }} - name: Update Changelog @@ -39,7 +42,7 @@ jobs: with: latest-version: ${{ steps.set-project-from-tag.outputs.version}} release-notes: ${{ github.event.release.body }} - path-to-changelog: 'CHANGELOG.md' + path-to-changelog: 'libs/${{ steps.set-project-from-tag.outputs.module }}/CHANGELOG.md' # - name: Build and publish # run: npm run build && cd dist/libs/${{ steps.set-project-from-tag.outputs.module }} && npm publish diff --git a/libs/transactions/src/lib/components/transaction-item/transaction-item.component.ts b/libs/transactions/src/lib/components/transaction-item/transaction-item.component.ts index 5b5ef818..b0df4e99 100644 --- a/libs/transactions/src/lib/components/transaction-item/transaction-item.component.ts +++ b/libs/transactions/src/lib/components/transaction-item/transaction-item.component.ts @@ -40,7 +40,7 @@ export class TransactionItemComponent implements OnChanges { } ngOnChanges(changes: SimpleChanges): void { - console.log("changes1008"); + console.log("changes100"); if (changes['transaction']) { this.amount = Number( this.transaction.transactionAmountCurrency.amount ?? 0