Skip to content

Commit

Permalink
fix(ci): project current lib version in repository
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed May 25, 2021
1 parent 81d5d69 commit 0acda8b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
uses: cycjimmy/semantic-release-action@v2
with:
dry_run: false
extra_plugins: |
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
15 changes: 14 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@
"release": {
"branches": ["master"],
"tagFormat": "v${version}"
}
},
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/git", {
"assets": [
"package.json",
"package-lock.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
]
}

0 comments on commit 0acda8b

Please sign in to comment.