Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix #658

Merged
merged 2 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions .github/workflows/releases-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:

jobs:
############ RELEASE ############
release:
name: Release
build:
name: Build DEV
runs-on: ubuntu-latest
outputs:
commit: ${{ steps.vars.outputs.commit }}
Expand Down Expand Up @@ -37,6 +37,39 @@ jobs:
- name: Build Package
run: pnpm build:full

- uses: actions/cache@v3
with:
path: ./packages
key: packages-key
release:
name: Release DEV
runs-on: ubuntu-latest
needs:
- build
outputs:
commit: ${{ steps.vars.outputs.commit }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{github.event.after}}
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
registry-url: https://registry.npmjs.org/

- run: corepack enable

- uses: actions/cache@v3
with:
path: ./packages
key: packages-key

- name: Release @bot-whatsapp/bot
run: node ./scripts/release.js --name=bot --version= --token="${{ secrets.NPM_TOKEN }}"

Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@rollup/plugin-strip": "^3.0.2",
"@commitlint/config-conventional": "^17.4.4",
"@octokit/core": "^4.2.0",
"@rollup/plugin-commonjs": "^23.0.7",
Expand Down Expand Up @@ -90,8 +91,5 @@
"yarn": "please-use-pnpm",
"pnpm": ">=7.18.0"
},
"author": "Leifer Mendez <leifer.contacto@gmail.com>",
"dependencies": {
"@rollup/plugin-strip": "^3.0.2"
}
"author": "Leifer Mendez <leifer.contacto@gmail.com>"
}
2 changes: 1 addition & 1 deletion packages/bot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/bot",
"version": "0.0.110-alpha.0",
"version": "0.0.111-alpha.0",
"description": "",
"main": "./lib/bundle.bot.cjs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/cli",
"version": "0.0.72-alpha.0",
"version": "0.0.95-alpha.0",
"description": "",
"main": "index.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/contexts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/contexts",
"version": "0.0.16-alpha.0",
"version": "0.0.39-alpha.0",
"description": "",
"main": "./lib/bundle.contexts.cjs",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/create-bot-whatsapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-bot-whatsapp",
"version": "0.0.93-alpha.0",
"version": "0.0.116-alpha.0",
"description": "",
"main": "./lib/bundle.create-bot-whatsapp.cjs",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/database/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/database",
"version": "0.0.64-alpha.0",
"version": "0.0.86-alpha.0",
"description": "Esto es el conector a mysql, pg, mongo",
"main": "./lib/mock/index.cjs",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion packages/portal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/portal",
"version": "0.0.22-alpha.0",
"version": "0.0.44-alpha.0",
"description": "Portal WEB para escanear QR",
"main": "./lib/portal.http.cjs",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bot-whatsapp/provider",
"version": "0.0.92-alpha.0",
"version": "0.0.94-alpha.0",
"description": "Esto es el conector a Twilio, Meta, etc...",
"main": "./lib/mock/index.cjs",
"keywords": [],
Expand Down
4 changes: 2 additions & 2 deletions packages/provider/rollup-provider.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = [
file: join(__dirname, 'lib', 'venom', 'index.cjs'),
format: 'cjs',
},
plugins: [commonjs()],
plugins: [strip(), commonjs()],
},
{
input: join(__dirname, 'src', 'baileys', 'index.js'),
Expand All @@ -50,7 +50,7 @@ module.exports = [
file: join(__dirname, 'lib', 'baileys', 'index.cjs'),
format: 'cjs',
},
plugins: [commonjs()],
plugins: [strip(), commonjs()],
},
{
input: join(__dirname, 'src', 'meta', 'index.js'),
Expand Down