-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- run: yarn --frozen-lockfile | ||
- run: yarn semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
This comment has been minimized.
Sorry, something went wrong. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
.idea | ||
|
||
/vendor/ | ||
/node_modules/ | ||
yarn-error.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"name": "@reachdigital/docker-devbox", | ||
"version": "1.0.0-preview.1", | ||
"description": "🐳 Reach Digital Magento 2 Docker+local hybrid devbox 🐳", | ||
"repository": "[email protected]:ho-nl/docker-development-box.git", | ||
"author": "Paul Hachmang <[email protected]>", | ||
"license": "MIT", | ||
"private": true, | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"scripts": { | ||
"semantic-release": "semantic-release" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-conventional": "^8.3.4", | ||
"@semantic-release/git": "^9.0.0", | ||
"husky": "^4.2.5", | ||
"semantic-release": "^17.0.8", | ||
"semantic-release-slack-bot": "^1.6.2" | ||
}, | ||
This comment has been minimized.
Sorry, something went wrong.
paales
Author
Member
|
||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
This comment has been minimized.
Sorry, something went wrong.
paales
Author
Member
|
||
} | ||
}, | ||
"release": { | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "docs", | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "feat", | ||
"section": "Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Fixes" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Performance Improvements" | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "Build" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Refactor" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"@semantic-release/npm", | ||
This comment has been minimized.
Sorry, something went wrong.
paales
Author
Member
|
||
"@semantic-release/git", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"@semantic-release/github", | ||
This comment has been minimized.
Sorry, something went wrong.
paales
Author
Member
|
||
[ | ||
"semantic-release-slack-bot", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{ | ||
"notifyOnSuccess": true, | ||
"notifyOnFail": true, | ||
"markdownReleaseNotes": true, | ||
"onSuccessTemplate": { | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "*New release for $repo_url 🎉*\n$release_notes" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
], | ||
"branches": [ | ||
{ | ||
"name": "master" | ||
} | ||
] | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
} | ||
} |
We create a GitHub action that will start the semantic-release process. Make sure the
SLACK_WEBHOOK
is available in the project. There is a globalSLACK_WEBHOOK
available that can be added to any project that will post to #announcements.To post the release notes to a specific channel, see https://github.com/juliuscc/semantic-release-slack-bot#slack-app-installation