Skip to content

release

release #101

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
increment:
description: 'Tipo de incremento: patch, minor, major ou pre*'
required: true
default: 'patch'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
- name: Setup GIT
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18.x
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Setup npm cache
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm ci || npm install
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Release
run: 'npx release-it --increment ${{ github.event.inputs.increment }}'