mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-18 03:29:15 +00:00
56 lines
2.0 KiB
YAML
56 lines
2.0 KiB
YAML
name: 🚀⚡ Liberando versiones
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
############ RELEASE ############
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set output
|
|
id: vars
|
|
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16.x
|
|
cache: 'yarn'
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- run: corepack enable
|
|
|
|
- name: Install NPM Dependencies
|
|
run: yarn install --immutable --network-timeout 300000
|
|
|
|
- name: Build Package
|
|
run: yarn build
|
|
|
|
- name: Release @bot-whatsapp/bot
|
|
run: yarn node ./scripts/release.js --name=bot --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Release @bot-whatsapp/cli
|
|
run: yarn node ./scripts/release.js --name=cli --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Release @bot-whatsapp/create-bot-whatsapp
|
|
run: yarn node ./scripts/release.js --name=create-bot-whatsapp --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Release @bot-whatsapp/database
|
|
run: yarn node ./scripts/release.js --name=database --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Release @bot-whatsapp/provider
|
|
run: yarn node ./scripts/release.js --name=provider --version="${{ steps.vars.outputs.tag }}" --token="${{ secrets.NPM_TOKEN }}"
|
|
|
|
- name: Commit Versioning & Push changes
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: 'release(version): 🚀 - "${{ steps.vars.outputs.tag }}" release'
|
|
branch: dev
|