Skip to content

Commit a7a96e1

Browse files
committed
feat: generate changelog on ci
1 parent 08a8240 commit a7a96e1

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/enforce-semantic-commits.yml

+14
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,17 @@ jobs:
3434
PR_TITLE='${{ github.event.pull_request.title }}'
3535
echo "PR TITLE": '$PR_TITLE'
3636
echo "$PR_TITLE" | npx commitlint
37+
38+
generate-changelog:
39+
name: Generate Changelog #? should we comment in the PR?
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
45+
- uses: ./.github/actions/setup
46+
47+
- name: Generate Changelog
48+
run: |
49+
git checkout -b changelog
50+
npx nx version ngx-deploy-npm --dry-run

packages/ngx-deploy-npm/project.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@
6565
]
6666
}
6767
},
68-
"deploy": {
68+
"publish": {
6969
"executor": "./dist/packages/ngx-deploy-npm:deploy",
7070
"options": {
7171
"distFolderPath": "dist/packages/ngx-deploy-npm",
7272
"access": "public"
7373
},
7474
"dependsOn": ["build"]
7575
},
76-
"deploy:without-build": {
76+
"publish:without-build": {
7777
"executor": "./dist/packages/ngx-deploy-npm:deploy",
7878
"options": {
7979
"distFolderPath": "dist/packages/ngx-deploy-npm",
@@ -90,7 +90,6 @@
9090
"version": {
9191
"executor": "@jscutlery/semver:version",
9292
"options": {
93-
"postTargets": ["build", "deploy"],
9493
"versionTagPrefix": "v"
9594
}
9695
}

0 commit comments

Comments
 (0)