Skip to content

Commit

Permalink
refactor: update pipeline (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Ranjit Tummalapalli <[email protected]>
  • Loading branch information
sairanjit authored Nov 29, 2023
1 parent d6c0c21 commit 7496bd6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -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']
Expand Down Expand Up @@ -53,6 +58,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}

- uses: pnpm/action-setup@v2
with:
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 7496bd6

Please sign in to comment.