diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d222f7d..0add2295 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,11 @@ jobs: run: bun publish:lib env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - name: Extract version + id: get_version + run: | + VERSION=$(node -p "require('./dist/ngx-mask-lib/package.json').version") + echo "version=$VERSION" >> $GITHUB_OUTPUT slack_notification: needs: @@ -59,6 +64,13 @@ jobs: "text": "Project: `${{ github.event.repository.name }}`" } }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Version: `${{ needs.build.outputs.version || 'TBA' }}`" + } + }, { "type": "section", "text": { diff --git a/.github/workflows/quality-check.yml b/.github/workflows/quality-check.yml index f423ddfe..97b5d7bc 100644 --- a/.github/workflows/quality-check.yml +++ b/.github/workflows/quality-check.yml @@ -21,4 +21,4 @@ jobs: - name: Check quality run: | bun i - bash .github/workflows/scripts/quality.sh + bash .github/workflows/scripts/quality.sh \ No newline at end of file