Publish Messaging Packages #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |