Skip to content

Commit

Permalink
Create a job to create releases
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed May 18, 2023
1 parent d5c6283 commit 257cb86
Showing 1 changed file with 57 additions and 1 deletion.
58 changes: 57 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,60 @@ jobs:
yarn install --frozen-lockfile --ignore-scripts --prefer-offline
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v3
with:
configurationJson: |
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature", "enhancement", "request"]
},
{
"title": "## 🛠 Fixes",
"labels": ["fix", "bug"]
},
{
"title": "## 🎲 Demo",
"labels": ["demo"]
},
{
"title": "## 🧩 Dependencies",
"labels": ["dependencies"]
},
{
"title": "## ⚙️ Configuration",
"labels": ["configuration"]
},
{
"title": "## 📦 Other",
"labels": []
}
],
"template": "#{{CHANGELOG}}",
"pr_template": "- #{{TITLE}}\n - PR: ##{{NUMBER}} by @#{{AUTHOR}}",
"empty_template": "#{{OWNER}}\n#{{REPO}}\n#{{FROM_TAG}}\n#{{TO_TAG}}",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000,
"label_extractor": [
{
"pattern": "^fix",
"on_property": "title",
"method": "match",
"flags": "i"
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a release
uses: softprops/action-gh-release@v1
with:
files: |
esm/index.js
index.d.ts
body: |
${{ steps.build_changelog.outputs.changelog }}

0 comments on commit 257cb86

Please sign in to comment.