diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ffe4cc..224cb95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,5 +35,6 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.RTLDEV_MW_CI_TOKEN }} - RTLDEV_MW_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} + TEAMS_NOTIFICATION_URI: ${{ secrets.RTLDEV_MW_CI_NOTIFICATION_URI }} + COMMIT_SHA: ${{ github.sha }} run: npx semantic-release diff --git a/.releaserc.json b/.releaserc.json index e44f253..763aad6 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -12,7 +12,7 @@ "@semantic-release/exec", { "prepareCmd": "./updateVersion.sh ${nextRelease.version} ${options.branch}", - "successCmd": "gulp publish --notes \"${encodeURIComponent(nextRelease.notes)}\"" + "successCmd": "gulp publishNotification --update \"${nextRelease.version}\" --type \"${nextRelease.type}\" --notes \"${encodeURIComponent(nextRelease.notes)}\"" } ], [ diff --git a/gulpfile.js b/gulpfile.js index 5f5c7a3..9a1e8d8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1 +1 @@ -exports.publish = require('rtldev-middleware-gulp-release-notification-plugin'); \ No newline at end of file +exports.publishNotification = require('rtldev-middleware-gulp-release-notification-plugin'); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 19b8c73..04f3816 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "gulp": "^4.0.2", - "rtldev-middleware-gulp-release-notification-plugin": "github:centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin", + "rtldev-middleware-gulp-release-notification-plugin": "github:centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin#semver:^1.0.0", "semantic-release": "^22.0.8" }, "engines": { @@ -9355,13 +9355,10 @@ } }, "node_modules/rtldev-middleware-gulp-release-notification-plugin": { - "version": "1.0.0", - "resolved": "git+ssh://git@github.com/centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin.git#d3158408cc391d5a8e551d3080d2c7576358f987", + "version": "0.0.0-development", + "resolved": "git+ssh://git@github.com/centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin.git#b95cade93fb724aae8dbf04f2c7be66fd6b85365", "dev": true, - "license": "ISC", - "dependencies": { - "gulp": "^4.0.2" - } + "license": "LICENSE" }, "node_modules/run-parallel": { "version": "1.2.0", diff --git a/package.json b/package.json index 4a1ba53..eea4083 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "gulp": "^4.0.2", - "rtldev-middleware-gulp-release-notification-plugin": "github:centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin", + "rtldev-middleware-gulp-release-notification-plugin": "github:centralnicgroup-opensource/rtldev-middleware-gulp-release-notification-plugin#semver:^1.0.0", "semantic-release": "^22.0.8" } }