diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 204b3b1..1913fab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,8 +3,8 @@ name: ci on: push: branches: [master] - release: - types: [created] + tags: + - "v*" pull_request: branches: [master] @@ -173,15 +173,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 14 - - name: Install semantic release - run: npm install -g semantic-release@17 @semantic-release/github @semantic-release/error @semantic-release/changelog @commitlint/cli @semantic-release/commit-analyzer @semantic-release/release-notes-generator conventional-changelog-conventionalcommits - - name: Release + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v3 env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} - run: npx semantic-release + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}