Skip to content

Merge pull request #178 from luizalabs/v2 #2

Merge pull request #178 from luizalabs/v2

Merge pull request #178 from luizalabs/v2 #2

Workflow file for this run

# Requisitos:
# Configuração do repositório: Vá em Settings > Actions > General e na seção "Workflow permissions", certifique-se de que está marcado "Read and write permissions" E que "Allow GitHub Actions to create and approve pull requests" está HABILITADO
name: Release
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install semantic-release and plugins
run: |
npm install -g semantic-release @semantic-release/release-notes-generator @semantic-release/commit-analyzer @semantic-release/changelog @semantic-release/github conventional-changelog-conventionalcommits
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
semantic-release
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: 'chore(release): update CHANGELOG'
token: ${{ secrets.GITHUB_TOKEN }}
branch: release/auto-version-update
title: 'chore(release): release: update version and changelog files'
body: 'This PR updates CHANGELOG.md with the new version generated by the automated release.'
base: master
add-paths: |
CHANGELOG.md
delete-branch: true