Skip to content

Commit

Permalink
chore: update dependencies and add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jan 23, 2024
1 parent 9fae89d commit acfab8a
Show file tree
Hide file tree
Showing 3 changed files with 1,533 additions and 600 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish
on:
release:
types: [ published ]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "New release ${{github.ref_name}} for ${{github.event.repository.name}}.",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "New release for <${{github.event.repository.html_url}}|`${{github.event.repository.name}}`>\n*<${{github.event.release.html_url}}|release notes>*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Project:*\n${{github.event.repository.name}}"
},
{
"type": "mrkdwn",
"text": "*Version:*\n${{github.ref_name}}"
}
]
},
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "${{github.event.sender.avatar_url}}",
"alt_text": "${{github.event.sender.login}}"
},
{
"type": "mrkdwn",
"text": "*${{github.event.sender.login}}* has triggered this release."
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.PIPELINE_SLACK_CHANNEL_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"types": "lib/index.d.ts",
"devDependencies": {
"@commercelayer/cli-dev": "^2.1.1",
"@commercelayer/cli-dev": "^2.1.3",
"@commercelayer/eslint-config-ts": "^1.3.0",
"@oclif/plugin-help": "^5.2.20",
"@oclif/test": "^2.5.6",
Expand All @@ -64,21 +64,21 @@
"@types/inquirer": "^8.2.10",
"@types/lodash": "^4.14.202",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.5",
"chai": "^4.3.10",
"@types/node": "^20.11.5",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"inflector-js": "^1.0.1",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"oclif": "^4.1.0",
"oclif": "^4.3.9",
"semantic-release": "^22.0.12",
"ts-node": "^10.9.2",
"typescript": "5.3.2"
"typescript": "5.3.3"
},
"dependencies": {
"@commercelayer/cli-core": "^4.9.2",
"@commercelayer/sdk": "^5.24.0",
"@commercelayer/cli-core": "^4.11.4",
"@commercelayer/sdk": "^5.29.0",
"@oclif/core": "^2.15.0",
"inquirer": "^8.2.6",
"tslib": "^2.6.2"
Expand Down
Loading

0 comments on commit acfab8a

Please sign in to comment.