-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (49 loc) · 1.48 KB
/
release.yml
File metadata and controls
56 lines (49 loc) · 1.48 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Releaser ✔️"
on:
push:
branches:
- main
- v2.70-legacy
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install conventional-changelog-cli
run: npm install -g conventional-changelog-cli@2.2.2
- name: Generate changelog
run: |
conventional-changelog -p angular -i CHANGELOG.md -s --release-count 1 --verbose
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
cat CHANGELOG.md >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Creates tag
uses: Klemensas/action-autotag@stable
id: auto-tag
with:
GITHUB_TOKEN: ${{ secrets.RELEASE_SECRET }}
tag_prefix: "v"
- name: Read package.json
uses: tyankatsu0105/read-package-version-actions@v1
id: package-version
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_SECRET }}
with:
tag_name: ${{ steps.auto-tag.outputs.tagname }}
release_name: "v${{ steps.package-version.outputs.version }}"
body: |
## Mudanças nessa release:
${{ env.CHANGELOG }}
draft: false
prerelease: false