Skip to content

Commit

Permalink
✨ Add COMMIT_ASSETS option
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Sep 6, 2021
1 parent 6c62575 commit 63f8361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
COMMIT_ASSETS: dist
GIT_AUTHOR_NAME: "BetaHuhn Bot"
GIT_AUTHOR_EMAIL: "bot@mxis.ch"
GIT_COMMITTER_NAME: "BetaHuhn Bot"
Expand Down
2 changes: 1 addition & 1 deletion config/release.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const options: Options = {
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package.json", "package-lock.json"],
assets: ["CHANGELOG.md", "package.json", "package-lock.json", ...(process.env.COMMIT_ASSETS ? process.env.COMMIT_ASSETS.split(',').map(x => x.trim()) : [] )],
message: ":bookmark: Release v${nextRelease.version} [skip ci]",
},
],
Expand Down

0 comments on commit 63f8361

Please sign in to comment.