From 7496bd6d73e1e2097cda18f3f6e61e11082da25a Mon Sep 17 00:00:00 2001 From: Sai Ranjit Tummalapalli Date: Wed, 29 Nov 2023 17:07:20 +0530 Subject: [PATCH] refactor: update pipeline (#20) Signed-off-by: Sai Ranjit Tummalapalli --- .github/workflows/pipeline.yaml | 12 +++++++++--- .release-it.json | 6 ++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index e92f55d..61cddc7 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -1,5 +1,10 @@ name: 'Pipeline' +concurrency: + # Cancel previous runs that are not completed yet + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: ['main'] @@ -53,6 +58,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_TOKEN }} - uses: pnpm/action-setup@v2 with: @@ -71,12 +78,11 @@ jobs: - name: Publish env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | echo ${{ inputs.release-type }} - git config --global user.email "ajay@ayanworks.com" - git config --global user.name "Ajay Jadhav" + git config --global user.email "amit.padmani@ayanworks.com" + git config --global user.name "Amit Padmani" if [ ${{ inputs.release-type }} == 'alpha' ]; then pnpm release --preRelease=${{ inputs.release-type }} --npm.tag=alpha diff --git a/.release-it.json b/.release-it.json index 01122e8..01c9e06 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,8 +1,10 @@ { "git": { - "commitMessage": "chore: release v${version}" + "commitMessage": "chore: release v${version} [skip ci]", + "commitArgs": ["--signoff"] }, "github": { - "release": true + "release": true, + "autoGenerate": true } }