Skip to content

Commit 2fb2308

Browse files
committed
ci: update workflows config.
1 parent d84a4ca commit 2fb2308

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,42 @@ jobs:
1717
- run: npm publish --access public --provenance
1818
name: 📦 open-browsers to NPM
1919
continue-on-error: true
20-
working-directory: core
2120
env:
2221
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
23+
- name: Create Tag
24+
id: create_tag
25+
uses: jaywcjlove/create-tag-action@main
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
package-path: ./package.json
29+
30+
- name: get tag version
31+
id: tag_version
32+
uses: jaywcjlove/changelog-generator@main
33+
34+
- name: Generate Changelog
35+
id: changelog
36+
uses: jaywcjlove/changelog-generator@main
37+
with:
38+
head-ref: ${{steps.create_tag.outputs.version}}
39+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
40+
41+
- name: Create Release
42+
uses: ncipollo/release-action@v1
43+
if: steps.create_tag.outputs.successful
44+
with:
45+
allowUpdates: true
46+
token: ${{ secrets.GITHUB_TOKEN }}
47+
name: ${{ steps.create_tag.outputs.version }}
48+
tag: ${{ steps.create_tag.outputs.version }}
49+
body: |
50+
[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/open-browsers@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
51+
52+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
53+
54+
```bash
55+
npm i open-browsers@${{steps.create_tag.outputs.versionNumber}}
56+
```
57+
58+
${{ steps.changelog.outputs.changelog }}

0 commit comments

Comments
 (0)