-
Notifications
You must be signed in to change notification settings - Fork 38
46 lines (44 loc) · 1.26 KB
/
publish-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 }}'