Skip to content

Commit

Permalink
chore: add gh wf to publish packages on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
franklevasseur committed Mar 25, 2024
1 parent 434394c commit 070f409
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}'

0 comments on commit 070f409

Please sign in to comment.