From 5981af6c0a122bac8275c078d091a98edddc81b8 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Fri, 19 Feb 2021 12:59:02 +0900 Subject: [PATCH] build: update release workflow --- .github/workflows/release.yml | 9 +++++---- .releaserc.json | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 .releaserc.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f75f2b5..a7470f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,13 @@ on: jobs: release: runs-on: ubuntu-latest - if: "! contains(github.event.head_commit.message, '[skip ci]') && ! contains(github.event.head_commit.message, '[ci skip]')" steps: - uses: actions/checkout@v2 - - run: | - npm i --no-save https://gist.github.com/mob-sakai/c90044338361af97a7e8c8a78425bdb3 - npx semantic-release -e @mob-sakai/semantic-release-upm + - uses: cycjimmy/semantic-release-action@v2 + with: + extra_plugins: | + @semantic-release/changelog + @semantic-release/git env: GITHUB_TOKEN: ${{ github.token }} diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..d2ee291 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,25 @@ +{ + "branches": [ + "+([0-9])?(.{+([0-9]),x}).x", + "master", + "main", + { + "name": "preview", + "prerelease": true + } + ], + "tagFormat": "${version}", + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ], + "@semantic-release/git", + "@semantic-release/github" + ] +}