Skip to content

Release

Release #17

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
tag:
description: 'Target tag'
required: false
type: string
pull_request:
branches:
- "ICC-*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Build
run: npm ci
- name: Patch for release
run: |
sed -i 's/{#COMMIT_HASH#}/${{ inputs.tag }}/' JitsiMeetJS.ts
sed -i '/"module"/a\ "main": "dist/umd/lib-jitsi-meet.min.js",\n "types": "types/auto/JitsiMeetJS.d.ts",' package.json
- name: Create bundle
run: |
npm pack
mv lib-jitsi-meet-0.0.0.tgz lib-jitsi-meet.tgz
- name: Create Tag
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ github.base_ref }}
message: "Release ${{ github.base_ref }}"
force_push_tag: true
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.tag }}
prerelease: true
fail_on_unmatched_files: true
files: |
lib-jitsi-meet.tgz