Skip to content

Commit

Permalink
Test unfurl
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Oct 26, 2023
1 parent 917d062 commit e9d7c9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
id: bump-version
run: |
NPM_PACKAGE=$(jq -r .name package.json)
echo "NPM_PACKAGE_NAME=$NPM_PACKAGE" >> "$GITHUB_OUTPUT"
echo "NPM Package name: $NPM_PACKAGE"
CURRENT_VERSION=$(jq -r .version package.json)
Expand All @@ -56,7 +55,6 @@ jobs:
npm version $LATEST_VERSION
fi
BUMP=${{ inputs.version_bump }}
echo "Bumping version: $BUMP"
if [[ "$BUMP" == "alpha" ]] || [[ "$BUMP" == "beta" ]]; then
Expand All @@ -70,6 +68,7 @@ jobs:
NEW_VERSION=$(jq -r .version package.json)
echo "Updated version: $NEW_VERSION"
echo "NPM_PACKAGE_NAME=$NPM_PACKAGE" >> "$GITHUB_OUTPUT"
echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT"
echo "GIT_TAG=${{ inputs.package }}-v$NEW_VERSION" >> "$GITHUB_OUTPUT"
- name: Commit package.json changes and tag
Expand All @@ -90,16 +89,17 @@ jobs:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
channel-id: C022SV53ASZ # C05DQPHUVNZ
# For posting a simple plain text message
channel-id: C062ZNXP9DG # alerts C022SV53ASZ # shared-systems C05DQPHUVNZ
payload: |
{
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ steps.bump-version.outputs.NEW_VERSION }} of ${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }} has been published to NPM \n • <https://www.npmjs.com/package/${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }}|NPM Link> \n • <https://github.com/department-of-veterans-affairs/va-mobile-library/releases/tag/${{ steps.bump-version.outputs.GIT_TAG }}|Git Tag>"
"text": "${{ steps.bump-version.outputs.NEW_VERSION }} of ${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }} has been published to NPM \n • <https://www.npmjs.com/package/${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }}|NPM> \n • <https://github.com/department-of-veterans-affairs/va-mobile-library/releases/tag/${{ steps.bump-version.outputs.GIT_TAG }}|Git Tag>"
"unfurl_links": false,
"unfurl_media": false
}
}
]
Expand Down

0 comments on commit e9d7c9c

Please sign in to comment.