Skip to content

Commit

Permalink
adding changelog creation in the CICD pipiline
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarbjorntvedt committed Dec 25, 2023
1 parent 6f72c5a commit e930f91
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
if: github.event.release.draft == false && github.event.release.prerelease == false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: npm access token
run: |
Expand All @@ -34,11 +36,12 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TFSO_TOKEN }}

- name: Update package.json
- name: Update package.json and CHANGELOG.md
run: |
git config --global user.name '${{github.actor}}'
git config --global user.email '${{github.actor}}@users.noreply.github.com'
npm version ${{github.event.release.tag_name}} --no-git-tag-version
npx auto-changelog -p && git add CHANGELOG.md
git add package.json
git commit -m "Update package.json version to ${{github.event.release.tag_name}} "
git push origin HEAD:main
Expand Down
162 changes: 162 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
"@types/lodash.defaultsdeep": "4.6.6",
"@types/mocha": "10.0.0",
"@types/sinon-chai": "3.2.5",
"auto-changelog": "^2.4.0",
"chai": "4.3.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-tfso": "github:tfso/eslint-config-tfso",
"eslint-config-tfso": "github:tfso/eslint-config-tfso",
"mocha": "10.2.0",
"nyc": "^15.1.0",
"prettier": "^3.1.1",
Expand Down Expand Up @@ -72,5 +73,12 @@
"files": [
"dist",
"src"
]
],
"auto-changelog": {
"issueUrl": "https://24so.atlassian.net/browse/{id}",
"issuePattern": "[A-Z]+-\\d+",
"unreleased": true,
"commitLimit": false,
"ignoreCommitPattern": "^(Update package.json|skip|Skip).*"
}
}

0 comments on commit e930f91

Please sign in to comment.