Skip to content

Commit e5fc7be

Browse files
authored
Integrate slack (#5)
* Integrate Slack notifications for automatic releases * Try fix the pipeline take 3
1 parent 2ae958b commit e5fc7be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030

3131
- name: Get the package version
3232
id: get_version
33-
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
33+
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
3434

3535
- name: Notify Slack
3636
uses: rtCamp/action-slack-notify@v2
3737
env:
3838
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
3939
SLACK_TITLE: 'Deployment Status'
40-
SLACK_MESSAGE: 'npm package @webredone/trb-cli version ${{ steps.get_version.outputs.version }} published successfully!'
40+
SLACK_MESSAGE: 'npm package @webredone/trb-cli version ${{ env.PACKAGE_VERSION }} published successfully!'
4141
SLACK_COLOR: '#36a64f'

0 commit comments

Comments
 (0)