Skip to content

Publish Messaging Packages #1

Publish Messaging Packages

Publish Messaging Packages #1

name: Publish Messaging Packages
on: workflow_dispatch
permissions:
id-token: write
contents: read
jobs:
publish-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install
run: |
yarn --immutable
- name: Build Client
working-directory: ./packages/client
run: |
yarn build
- name: Build Socket
working-directory: ./packages/socket
run: |
yarn build
- name: Build Webchat
working-directory: ./packages/webchat
run: |
yarn build
- name: Publish Client
uses: botpress/gh-actions/publish-if-not-exists@master
with:
path: './packages/client'
token: '${{ secrets.NPM_ACCESS_TOKEN }}'
- name: Publish Socket
uses: botpress/gh-actions/publish-if-not-exists@master
with:
path: './packages/socket'
token: '${{ secrets.NPM_ACCESS_TOKEN }}'
- name: Publish Webchat
uses: botpress/gh-actions/publish-if-not-exists@master
with:
path: './packages/webchat'
token: '${{ secrets.NPM_ACCESS_TOKEN }}'