-
Notifications
You must be signed in to change notification settings - Fork 27
41 lines (34 loc) · 1.11 KB
/
gerador-de-changelog.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: Gerador de CHANGELOG
# só executa no push de commit da branch master
on:
push:
branches:
- master
jobs:
build:
# só deixa executar se o último commit não conter 'skip ci' na mensagem
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
# configura o GITHUB_TOKEN
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token
- name: Configura o GitHub token
uses: fregante/setup-git-token@v1
with:
token: ${{ secrets.GH_TOKEN }}
name: "Gerador de changelog"
email: "[email protected]"
# instala a versão 11.x do Node.js
- name: Instala o Node.js 11.x
uses: actions/setup-node@v1
with:
node-version: 11.x
# instala as dependências, vai para a develop
# executa o standard-version, e envia o commit e tag
- name: Gera o CHANGELOG
run: |
npm ci
git checkout master
npm run release
git push origin master --follow-tags