ci: 🔥 fix github action

This commit is contained in:
Leifer Mendez
2023-01-11 20:34:59 +01:00
parent 389169fc58
commit 675046cc58
8 changed files with 18 additions and 57 deletions

View File

@@ -1,45 +0,0 @@
name: Rev Providers
on:
pull_request:
branches:
- dev
jobs:
check-npm:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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: Check Baileys
run: yarn node ./scripts/checker.js --name=baileys --stable=true
- name: Check Venom
run: yarn node ./scripts/checker.js --name=venom --stable=true
- name: Check web-whatsapp
run: yarn node ./scripts/checker.js --name=web-whatsapp --stable=true
- name: Check Meta
run: yarn node ./scripts/checker.js --name=meta --stable=true
- name: Check Twilio
run: yarn node ./scripts/checker.js --name=twilio --stable=true
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'ci(providers): 👍 updated versions stable providers'

View File

@@ -13,7 +13,7 @@ name: 'CodeQL'
on:
push:
branches: ['main', dev, next-release]
branches: [release/next]
pull_request:
# The branches below must be a subset of the branches above
branches: ['main']
@@ -22,6 +22,7 @@ on:
jobs:
analyze:
if: ${{ !github.event.act }}
name: Analyze
runs-on: ubuntu-latest
permissions:

View File

@@ -1,8 +1,8 @@
name: Revisando Colaboradores
on:
push:
branches:
- main
schedule:
- cron: '0 9 * * *'
jobs:
contrib-readme-job:

View File

@@ -13,6 +13,7 @@ on:
jobs:
############ DOCUMENTATION BUILD ############
build-documentation:
if: ${{ !github.event.act }}
name: Build Package
runs-on: ubuntu-latest

View File

@@ -7,7 +7,7 @@ on:
jobs:
############ DOCUMENTATION BUILD ############
build-documentation:
build-documentation-prod:
name: Build Package
runs-on: ubuntu-latest

View File

@@ -50,8 +50,10 @@ jobs:
- name: Release @bot-whatsapp/portal
run: yarn node ./scripts/release.js --name=portal --version= --token="${{ secrets.NPM_TOKEN }}"
- name: Commit Versioning & Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'ci(version): :zap: automatic - "${date}" updated versions every packages'
branch: dev
- name: GIT commit and push all changed files
if: github.event_name == 'push'
run: |
git config --global user.email "leifer.contacto@gmail.com"
git config --global user.name "Leifer Mendez"
git commit -a -m 'chore(version): dev release 🫡'
git push origin dev

View File

@@ -6,7 +6,8 @@ on:
- release/production
jobs:
############ RELEASE ############
release:
release-prod:
if: ${{ !github.event.act }}
name: Release
runs-on: ubuntu-latest
steps:
@@ -70,4 +71,4 @@ jobs:
if: github.event_name == 'push'
run: |
git commit -a -m 'chore(version): launch release 🚀 "${{ steps.package-version.outputs.current-version}}"'
git push
git push origin dev