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 e3a6da6 commit 091f597
Show file tree
Hide file tree
Showing 3 changed files with 175 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
163 changes: 162 additions & 1 deletion package-lock.json

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

10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@
"xml2js": "^0.6.2"
},
"devDependencies": {
"auto-changelog": "^2.4.0",
"chai": "^4.3.10",
"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"
},
"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 091f597

Please sign in to comment.