From 70fbb7a74869b4c9b2efe43efcd36bdffe2aad66 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Fri, 22 Sep 2023 11:10:46 +0300 Subject: [PATCH] ci: enable semrel --- .github/workflows/ci.yaml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3dd067a..5533dad 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -34,26 +34,26 @@ jobs: - name: Run tests run: yarn test -# - name: Codeclimate -# if: github.ref == 'refs/heads/master' -# uses: paambaati/codeclimate-action@v4.0.0 -# env: -# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} -# with: -# coverageLocations: | -# ${{github.workspace}}/target/coverage/lcov.info:lcov + - name: Codeclimate + if: github.ref == 'refs/heads/master' + uses: paambaati/codeclimate-action@v4.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageLocations: | + ${{github.workspace}}/target/coverage/lcov.info:lcov -# - name: Semantic Release -# if: github.ref == 'refs/heads/master' -# env: -# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} -# NPM_PROVENANCE: true -# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} -# GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} -# GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} -# GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} -# run: npm_config_yes=true npx zx-semrel + - name: Semantic Release + if: github.ref == 'refs/heads/master' + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_PROVENANCE: true + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} + GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} + GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} + run: npm_config_yes=true npx zx-semrel pr: if: github.event_name == 'pull_request'