Skip to content

Commit

Permalink
fix: add automatic semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
erzz committed Jun 2, 2021
1 parent 2f85bc3 commit b74ed92
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on: workflow_dispatch
env:
NPM_TOKEN: ${{ secrets.ARTIFACTORY_AUTH_TOKEN }}

jobs:
# <--------------- RUN SEMANTIC RELEASE ---------------->
release:
name: Semantic Release
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false

- name: Semantic Release
id: semantic-release
uses: cycjimmy/semantic-release-action@v2.5.4
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
dry_run: false
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
15 changes: 15 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
]
],
"branches": ["main"]
}

0 comments on commit b74ed92

Please sign in to comment.