File tree 3 files changed +15
-9
lines changed
3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 24
24
echo "NODE_VERSION=${{ inputs.node-version }}" >> $GITHUB_ENV
25
25
fi
26
26
27
+ - name : git config
28
+ shell : bash
29
+ run : |
30
+ git config user.name "ngx-deploy-npm bot"
31
+ git config user.email "-"
32
+
27
33
- name : Use Node.js
28
34
uses : actions/setup-node@v4
29
35
with :
Original file line number Diff line number Diff line change 34
34
PR_TITLE='${{ github.event.pull_request.title }}'
35
35
echo "PR TITLE": '$PR_TITLE'
36
36
echo "$PR_TITLE" | npx commitlint
37
+ echo "::set-output name=pr_title::$PR_TITLE"
37
38
38
39
generate-changelog :
40
+ needs : [check-pr-title]
39
41
name : Generate Changelog # ? should we comment in the PR?
40
42
runs-on : ubuntu-latest
41
43
steps :
44
46
fetch-depth : 0
45
47
- uses : ./.github/actions/setup
46
48
47
- - name : Generate Changelog
49
+ - name : Generate tmp branch
50
+ run : git checkout -b changelog
51
+
52
+ - name : Squash commits
48
53
run : |
49
- git checkout -b changelog
50
- npx nx version ngx-deploy-npm --dry-run
54
+ git reset --soft `git merge-base main HEAD`
55
+ git commit -m "${{ steps.check-title.outputs.pr_title }}"
56
+ git log
Original file line number Diff line number Diff line change 53
53
- uses : actions/checkout@v4
54
54
- uses : ./.github/actions/setup
55
55
56
- - name : git config
57
- shell : bash
58
- run : |
59
- git config user.name "Github Actions"
60
- git config user.email "-"
61
-
62
56
- uses : ./.github/actions/download-build
63
57
64
58
- name : Check npm credentials
You can’t perform that action at this time.
0 commit comments