From 2f5902b35bd4d9367bd58dadd16f12cc16201668 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 19 Nov 2019 12:55:11 +0100 Subject: [PATCH] chore:use npx instead of GH action --- .github/workflows/release.yml | 28 +++++++++++++--------------- .releaserc.js | 7 +++++++ 2 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 .releaserc.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a74759c..2fa3f33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,21 +28,19 @@ jobs: with: go-version: ${{ matrix.go }} - run: go run main.go - release: + release: release: runs-on: ubuntu-18.04 needs: [test, build] - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@master - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v2 - id: semantic # Need an `id` for output variables - with: - branch: master - semantic_version: latest - extra_plugins: | - @semantic-release/git - @semantic-release/changelog@3.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Source checkout + uses: actions/checkout@v1 + with: + fetch-depth: 1 + - name: Release + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + npx semantic-release + + diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000..cf2f499 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,7 @@ +module.exports = { + branch: 'master', + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator" + ] + }; \ No newline at end of file