Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Oct 13, 2023
1 parent 3ea48fd commit 86eb463
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
- name: Release and Publish
run: |
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=[agora-rtc-sdk-ng-fake.zip,dist/fake-agora-rtc.js]
pnpm release ${{ steps.package-info.outputs.version }} --ci --npm.publish=${{ inputs.publish-npm }} --github.update --github.assets=["agora-rtc-sdk-ng-fake.zip","dist/fake-agora-rtc.js"]
10 changes: 9 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export * from "./eventemitter";
export * from "./client";
export * from "./version";

export const FakeAgoraRTC = createFakeAgoraRTC({
const FakeAgoraRTC = createFakeAgoraRTC({
setAppType(): void {
//
},
Expand All @@ -16,4 +16,12 @@ export const FakeAgoraRTC = createFakeAgoraRTC({
createClient: () => FakeRTCClient.create(),
});

export function getFakeAgoraRTC() {
return FakeAgoraRTC;
}

export const FakeAgoraRTCWrapper = {
getFakeAgoraRTC: getFakeAgoraRTC,
};

export default FakeAgoraRTC;

0 comments on commit 86eb463

Please sign in to comment.