ci: update release workflow try10

This commit is contained in:
Ritesh Ghosh
2025-05-12 01:04:09 +05:30
parent 5ccf05401d
commit 61c2580858
+3 -12
View File
@@ -10,20 +10,14 @@ jobs:
steps: steps:
- name: Checkouts repo - name: Checkouts repo
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: "22.x"
- name: Install deps
run: npm i
- name: Conventional changelog action - name: Conventional changelog action
id: changelog id: changelog
uses: TriPSs/conventional-changelog-action@v5 uses: TriPSs/conventional-changelog-action@v5
with: with:
skip-on-empty: false skip-on-empty: false
git-user-name: "github-actions[bot]"
git-user-email: "github-actions[bot]@users.noreply.github.com"
pre-commit: ./scripts/format-package-json.sh
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create release - name: Create release
@@ -35,6 +29,3 @@ jobs:
tag: ${{ steps.changelog.outputs.tag }} tag: ${{ steps.changelog.outputs.tag }}
name: ${{ steps.changelog.outputs.tag }} name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }} body: ${{ steps.changelog.outputs.clean_changelog }}
- name: Fix identation in package.json
run: jq --indent 4 . package.json > tmp.json && mv tmp.json package.json