diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..3fddd5f4 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,16 @@ +### Pull Request Type + +๐Ÿ”ฎ Feature +๐Ÿ› BugFix +โš’๏ธ Refactor +๐Ÿงน Chore +๐Ÿ”ฅ HotFix +๐Ÿš€ Release + + +### Description +- + +### Reference Links +- [Asana]() +- [DataDog]() diff --git a/.github/workflows/publish-on-merge.yml b/.github/workflows/publish-on-merge.yml index 81236d87..5a1db44d 100644 --- a/.github/workflows/publish-on-merge.yml +++ b/.github/workflows/publish-on-merge.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: inputs: dry_run: - description: 'Run in dry-run mode (no actual publishing)' + description: "Run in dry-run mode (no actual publishing)" required: false default: false type: boolean @@ -44,8 +44,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - registry-url: 'https://registry.npmjs.org' - cache: 'yarn' + registry-url: "https://registry.npmjs.org" + cache: "yarn" - name: Install dependencies run: | @@ -236,6 +236,9 @@ jobs: exit 0 fi + logger -l info -m "Installing dependencies to update yarn.lock" + yarn install + logger -l info -m "Creating new branch" git checkout -b "chore/bump-sdk-version-${{ steps.version.outputs.version }}" @@ -243,8 +246,8 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - logger -l info -m "Adding and committing package.json" - git add package.json + logger -l info -m "Adding and committing package.json and yarn.lock" + git add package.json yarn.lock git commit -m "chore: bump @d-id/client-sdk to v${{ steps.version.outputs.version }}" logger -l info -m "Publishing branch to origin" diff --git a/src/services/streaming-manager/livekit-manager.ts b/src/services/streaming-manager/livekit-manager.ts index 50f585f7..b0f178da 100644 --- a/src/services/streaming-manager/livekit-manager.ts +++ b/src/services/streaming-manager/livekit-manager.ts @@ -90,7 +90,7 @@ export async function createLiveKitStreamingManager & { reconnect(): Promise }> { const log = createStreamingLogger(options.debug || false, 'LiveKitStreamingManager'); - const { Room, RoomEvent, ConnectionState: LiveKitConnectionState } = await importLiveKit(); + const { Room, RoomEvent, ConnectionState: LiveKitConnectionState, Track } = await importLiveKit(); const { callbacks, auth, baseURL, analytics, microphoneStream } = options; let room: Room | null = null; @@ -293,11 +293,11 @@ export async function createLiveKitStreamingManager { + function findPublishedMicrophoneTrack(audioTrack: MediaStreamTrack): LocalTrackPublication | null { if (!room) return null; - const { Track } = await importLiveKit(); const publishedTracks = room.localParticipant.audioTrackPublications; if (publishedTracks) { @@ -409,9 +417,8 @@ export async function createLiveKitStreamingManager