Skip to content

Commit

Permalink
fix(ref: 1440): add version lib version to slack
Browse files Browse the repository at this point in the history
fix(ref: 1440): add version lib version to slack
  • Loading branch information
andriikamaldinov1 authored Nov 1, 2024
2 parents 8b72978 + d7faab3 commit cced956
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Check quality
run: |
bun i
bash .github/workflows/scripts/quality.sh
bash .github/workflows/scripts/quality.sh

0 comments on commit cced956

Please sign in to comment.