-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 951 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
push:
branches:
- plus/2.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Generate changelog
run: npm run changelog
- name: Commit changelog
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git config --global user.email "crazymryan@gmail.com"
git config --global user.name "CrazyMrYan"
git add CHANGELOG.md
git commit -m "chore(release): update changelog"
git push origin plus/2.0.0
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release