Skip to content

Commit

Permalink
add automatic dispatchable release action (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
shtaif authored Jan 7, 2023
1 parent e4397f6 commit d9a42f8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release_new_version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release new version

on:
workflow_dispatch:

jobs:
release_new_version:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Semantic Release
id: semantic_release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
semantic_version: 19.0.5
dry_run: false
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/[email protected]
@semantic-release/github
@semantic-release/npm
@semantic-release/git
16 changes: 16 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}

0 comments on commit d9a42f8

Please sign in to comment.