Skip to content

feat(core): channel context #98

feat(core): channel context

feat(core): channel context #98

Workflow file for this run

name: Release package
on:
push:
branches: [main, beta]
env:
AWS_REGION: us-east-1
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node 16.x
uses: actions/setup-node@v3
with:
node-version: '16.14.2'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Build and Generate docs 📚
run: |
npm ci
npx nx doc core
- name: Deploy 🚀
run: |
npx nx release core
aws s3 cp --recursive --acl public-read packages/core/dist/docs s3://chatkitty-docs/chatkitty-js/packages/core/docs
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}