Skip to content

Commit

Permalink
ci: squash pr commits
Browse files Browse the repository at this point in the history
  • Loading branch information
dianjuar committed Oct 29, 2024
1 parent a7a96e1 commit 89387d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ runs:
echo "NODE_VERSION=${{ inputs.node-version }}" >> $GITHUB_ENV
fi
- name: git config
shell: bash
run: |
git config user.name "ngx-deploy-npm bot"
git config user.email "-"
- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/enforce-semantic-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
PR_TITLE='${{ github.event.pull_request.title }}'
echo "PR TITLE": '$PR_TITLE'
echo "$PR_TITLE" | npx commitlint
echo "::set-output name=pr_title::$PR_TITLE"
generate-changelog:
needs: [check-pr-title]
name: Generate Changelog #? should we comment in the PR?
runs-on: ubuntu-latest
steps:
Expand All @@ -44,7 +46,11 @@ jobs:
fetch-depth: 0
- uses: ./.github/actions/setup

- name: Generate Changelog
- name: Generate tmp branch
run: git checkout -b changelog

- name: Squash commits
run: |
git checkout -b changelog
npx nx version ngx-deploy-npm --dry-run
git reset --soft `git merge-base main HEAD`
git commit -m "${{ steps.check-title.outputs.pr_title }}"
git log
6 changes: 0 additions & 6 deletions .github/workflows/publishment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- name: git config
shell: bash
run: |
git config user.name "Github Actions"
git config user.email "-"
- uses: ./.github/actions/download-build

- name: Check npm credentials
Expand Down

0 comments on commit 89387d0

Please sign in to comment.