File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : 📋 Release
2+
3+ on :
4+ push :
5+ tags :
6+ - v[0-9]+.[0-9]+.[0-9]+
7+
8+ jobs :
9+ release :
10+ name : Release
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : ⬇️ Checkout repo
15+ uses : actions/checkout@v3.5.3
16+
17+ - name : ⎔ Setup node
18+ uses : actions/setup-node@v3.6.0
19+ with :
20+ node-version : 18
21+
22+ - name : 📄 Update package.json to only include prettier
23+ run : |
24+ updated=`cat package.json | jq 'del(.dependencies) | .devDependencies |= (to_entries | map(select(.key | match("prettier";"i"))) | from_entries)'`
25+ echo $updated > package.json
26+
27+ - name : 💿 Install prettier
28+ run : npm install
29+
30+ - name : 📝 Update CHANGELOG
31+ id : changelog
32+ uses : requarks/changelog-action@v1.8.1
33+ with :
34+ token : ${{ github.token }}
35+ tag : ${{ github.ref_name }}
36+ excludeTypes : build,docs
37+
38+ - name : 📦 Create Release
39+ uses : ncipollo/release-action@v1.12.0
40+ with :
41+ allowUpdates : true
42+ draft : false
43+ name : ${{ github.ref_name }}
44+ body : ${{ steps.changelog.outputs.changes }}
45+ token : ${{ github.token }}
46+
47+ - name : 🎨 Format CHANGELOG.md
48+ run : npx prettier --write CHANGELOG.md
49+
50+ - name : ⬆️ Commit CHANGELOG.md
51+ uses : stefanzweifel/git-auto-commit-action@v4.16.0
52+ with :
53+ branch : main
54+ commit_author : GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
55+ commit_message : ' docs(changelog): update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
56+ file_pattern : CHANGELOG.md
You can’t perform that action at this time.
0 commit comments