Skip to content

chore: publish new messaging socket client (#667) #631

chore: publish new messaging socket client (#667)

chore: publish new messaging socket client (#667) #631

Workflow file for this run

name: Release
on:
push:
branches:
- master
- v1.2
workflow_dispatch:
jobs:
release_bin:
permissions:
contents: write
if: "${{ startsWith(github.event.head_commit.message, 'chore(server): release v') == true || github.event_name == 'workflow_dispatch' }}"
name: Release Binaries
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Fetch Node Packages
run: |
yarn --immutable
- name: Get Release Details
id: release_details
uses: botpress/gh-actions/get_release_details@v2
- name: Display Release Details
id: changelog
run: |
echo "Changelog: ${{ steps.release_details.outputs.changelog }}"
echo "Is new release?: ${{ steps.release_details.outputs.is_new_release }}"
echo "Version: ${{ steps.release_details.outputs.version }}"
echo "Latest Tag: ${{ steps.release_details.outputs.latest_tag }}"
- name: Build and Package
run: |
yarn build
yarn package
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./bin/messaging-v*
prerelease: false
draft: false
body: ${{ steps.release_details.outputs.changelog }}
name: v${{ steps.release_details.outputs.version }}
tag_name: v${{ steps.release_details.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}