update husky

This commit is contained in:
Leifer Mendez
2022-11-28 16:35:09 +01:00
parent a6ee58ff28
commit b25fee0d86
3 changed files with 36 additions and 1 deletions

25
.github/workflows/publish-doc.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish Docs
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cd packages/docs && npm i && npm run build
- name: Publish Docs
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: bot-whatsapp-docs
directory: packages/docs/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
id: publish
- name: Deployment URL
run: echo "${{ steps.publish.outputs.url }}"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
echo "⭐⭐⭐⭐⭐⭐⭐⭐ git-cz"
exec < /dev/tty && node_modules/.bin/cz --hook || true

View File

@@ -0,0 +1,10 @@
const commonjs = require('@rollup/plugin-commonjs')
module.exports = {
input: 'index.js',
output: {
file: 'lib/index.cjs',
format: 'cjs',
},
plugins: [commonjs()],
}