Skip to content

Commit

Permalink
feat(ref: no-ref): add publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Nov 22, 2024
1 parent 596749a commit 098aa19
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .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 @@ -63,6 +70,13 @@ jobs:
"text": "Commit/PR URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Version: `${{ needs.build.outputs.version || 'TBA' }}`"
}
},
{
"type": "section",
"text": {
Expand Down

0 comments on commit 098aa19

Please sign in to comment.