From 0b3677ccf34e1a63018db7cb09241de5a6d8bc60 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Mon, 23 Dec 2019 12:45:22 +0100 Subject: [PATCH] feat: semantic release --- .github/workflows/release.yml | 13 +++++++++++++ .releaserc.js | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .releaserc.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..60b56fb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +name: Semantic Release + +on: push + +jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: codfish/semantic-release-action@v1 + if: github.ref == 'refs/heads/master' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000..566642f --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,8 @@ +module.exports = { + branch: 'master', + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/github', + ], +};