Skip to content

Commit

Permalink
feat(ref: no-ref): fix slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Nov 22, 2024
1 parent ee50f6e commit af5df85
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -27,6 +29,11 @@ jobs:
run: bun run 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 @@ -56,6 +63,13 @@ jobs:
"text": "Project: `${{ github.event.repository.name }}`"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Version: `${{ needs.build.outputs.version || 'TBA' }}`"
}
},
{
"type": "section",
"text": {
Expand All @@ -67,7 +81,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Website URL: ${{ env.NPM_PACKAGE_URL }}"
"text": "Website URL: ${{ secrets.NPM_PACKAGE_URL }}"
}
}
]
Expand Down

0 comments on commit af5df85

Please sign in to comment.