Skip to content

Commit

Permalink
feat(releases): generate and commit changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Will Soto <willsoto@users.noreply.github.com>
  • Loading branch information
willsoto committed Nov 15, 2021
1 parent cce8ba4 commit e062b87
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 17 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: volta-cli/action@v1
- run: npm ci
- run: "npm ci --ignore-scripts"
- run: npm run release
env:
# https://github.com/semantic-release/github#github-authentication
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# https://docs.npmjs.com/creating-and-viewing-access-tokens
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
56 changes: 56 additions & 0 deletions package-lock.json

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

34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,23 @@
"singleQuote": false,
"trailingComma": "all"
},
"release": {
"branches": [
"main",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/changelog",
"@semantic-release/git"
]
},
"mocha": {
"extension": [
"ts"
Expand Down Expand Up @@ -100,6 +117,7 @@
"@nestjs/core": "~8.2.0",
"@nestjs/testing": "~8.2.0",
"@semantic-release/changelog": "~6.0.0",
"@semantic-release/git": "~10.0.1",
"@types/chai": "~4.2.22",
"@types/chai-as-promised": "~7.1.4",
"@types/mocha": "~9.0.0",
Expand Down Expand Up @@ -140,22 +158,6 @@
"knex": "^0.95.0",
"objection": "^3.0.0"
},
"release": {
"branches": [
"main",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/changelog"
]
},
"volta": {
"node": "16.13.0",
"npm": "8.1.1"
Expand Down

0 comments on commit e062b87

Please sign in to comment.