Skip to content

Commit

Permalink
feat: enable provisioning plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Jan 26, 2024
1 parent 7738ebe commit 97f2340
Show file tree
Hide file tree
Showing 8 changed files with 1,565 additions and 625 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ node_modules
.oclif.manifest.json
/package-lock.json
test_data*
*.env

2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const PATCH = false
const PROVISIONING = false
const PROVISIONING = true

const oclif = require('@oclif/core')

Expand Down
2 changes: 1 addition & 1 deletion bin/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const PATCH = false
const PROVISIONING = false
const PROVISIONING = true

const oclif = PATCH? require('../lib/patches/oclif/core/main') : require('@oclif/core')

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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/test": "^2.5.6",
"@semantic-release/changelog": "^6.0.3",
Expand All @@ -104,22 +104,22 @@
"@types/inquirer": "^8.2.10",
"@types/lodash": "^4.14.202",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.5",
"@types/node": "^20.11.7",
"@types/update-notifier": "^5.1.0",
"chai": "^4.3.10",
"dotenv": "^16.3.1",
"chai": "^4.4.1",
"dotenv": "^16.4.1",
"eslint": "^8.56.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"oclif": "^4.1.0",
"oclif": "^4.3.10",
"semantic-release": "^22.0.12",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"dependencies": {
"@commercelayer/cli-core": "^4.9.2",
"@commercelayer/provisioning-sdk": "beta",
"@commercelayer/sdk": "^5.24.0",
"@commercelayer/cli-core": "^4.11.4",
"@commercelayer/provisioning-sdk": "^1.0.0",
"@commercelayer/sdk": "^5.30.0",
"@oclif/core": "^2.15.0",
"@oclif/plugin-autocomplete": "^2.3.10",
"@oclif/plugin-help": "5.2.14",
Expand Down
Loading

0 comments on commit 97f2340

Please sign in to comment.